program design epiphany: you can have as many implicit side channel argument-passing stacks in your program as you like.
program design epiphany: you can have as many implicit side channel argument-passing stacks in your program as you like. 7 comments
@morten_skaaning right - and globals can be stacks that move in parallel to the callstack. @lritter @morten_skaaning i wonder how that performs compared to the dedicated native stack 🤔 @beatrix @morten_skaaning you're not passing through register values, it's all load store and heap allocations so - worse. @lritter @morten_skaaning yeah… I’m mainly curious how array[sp++] compares to a push instruction… And how big part that is of the whole program’s runtime … guess one could try to benchmark it 😅 @beatrix @morten_skaaning the compiler will also have a harder time inlining any of that. |
@lritter yeah it's called globals 😂😂