This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Question: automatic variable memory allocation
- From: "Weihaw Chuang" <weihawchuang at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 10 Mar 2004 03:33:18 -0800
- Subject: Question: automatic variable memory allocation
- Bcc:
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