|
Just a quick query here guys - sorry if im hogging your thread!
Where i'm from (embededd environments) (and please correct me if i'm wrong because i am rusty) in Aloksaves function temp() there is no reason for a stack to be used at all apart from the return address when temp has finished. Temp variables will be assigned to registers and since there is no function calls within temp() - there will not be a push to the stack with the locals on it because there is no point.
My question is - what environment are locals created on the stack even if they are not used other than anywhere locally ? (like in temp() above).
Thanks
Ringo
|