3 ms·
Mildly educated answer here. A stack in low level terms is just a first-in-first-out record of what context the CPU needs to reload when it's done with the cur
by andrewstuart2 12y ago
Mildly educated answer here. A stack in low level terms is just a first-in-first-out record of what context the CPU needs to reload when it's done with the current line of execution. If you can stay in the same context and just increment or decrement some variables, you'd probably call that stackless.
When you pass function parameters you usually need to push onto the stack or risk overwriting the value of the named variable in the current execution context, since it has the same name or register in the new execution context.
Again, mildly educated answer so if somebody can correct me, please do.
- gorhill 12y ago> A stack in low level terms is just a first-in-first-out record I think you meant last-in-first-out.
- andrewstuart2 12y agoAh, yes I did.