> Yes, this 4096 is allocated only when the function is called.
> 
> It's automatically reserve space on stack. (it's only one assembler
> instruction).
> When you use malloc you call to OS for reserve memory space in HEAP.
> It's a longer than reserve space on stack.


Thanks for the explanation - makes sense.

Cheers,

jez.

Reply via email to