Question: automatic variable memory allocation

Weihaw Chuang weihawchuang@hotmail.com
Wed Mar 10 11:33:00 GMT 2004


Hi all,
I'm trying to figure out how gcc allocates stack space for automatic 
variables (local to function).  Apparently much of the work happens around 
expand_decl as it creates the RTL that presumably manipulates the stack 
pointer (sp) after figuring out how much memory the variable requires.  Q1: 
Where does gcc figure out which portion of stack is given to a variable, and 
where is this state kept.  Q2:   Does the RTL attached to the VAR_DECL 
actually get materialized into actual RTL in the intermediate 
representation?

Thanks for any assistance,
-Wei

_________________________________________________________________
Get business advice and resources to improve your work life, from bCentral. 
http://special.msn.com/bcentral/loudclear.armx



More information about the Gcc mailing list