pub fn stackGrowth(target: *const Target) StackGrowth target: *const Target3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145pub fn stackGrowth(target: *const Target) StackGrowth {
// Strictly speaking, most architectures don't inherently define the stack growth direction; you
// could quite easily argue that it is in fact a property of the ABI. However, that's just not
// really how it plays out in the real world. And besides, we have no mechanism for indicating
// a different stack growth ABI, nor a compelling use case for creating such a mechanism.
return switch (target.cpu.arch) {
.hppa,
.hppa64,
.spork8,
=> .up,
else => .down,
};
}