← concepts · the commons
stack allocation
4 moment(s) that assert this concept — showing 1–4 of 4
single sourceRests on a single channel — treat as a lead, verify independently
↣ how this spread over time →Sreekanth · youtube · en
1The add1 function reserves four bytes on the stack for its input parameter.
“so four bytes will be reserved for it on”
spoken · 516s · 2021-10-13
Sreekanth · youtube · en
2The return value of the add1 function is stored in a local variable on the stack.
“23 is stored in its local”
spoken · 537s · 2021-10-13
Sreekanth · youtube · en
3Allocating on the stack is fast because it does not require system calls.
“allocating on the stack is fast because”
spoken · 558s · 2021-10-13
Sreekanth · youtube · en
4Only variables with a fixed size known at compile time can be stored on the stack.
“only variables that have a fixed size”
spoken · 566s · 2021-10-13