Hacker News new | ask | show | jobs
by majewsky 3820 days ago
> allocating the memory for variables

Allocation of N variables on the stack is O(1) since it just moves the stack pointer by the total size of all variables.

1 comments

You wrongly assume here that your C code will have to run on a stack machine.
Do you have a counterexample?