This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Question: automatic variable memory allocation


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]