This is the mail archive of the gcc-help@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]

Re: Stack frame question on x86 code generation


Gang-Ryung Uh <uh18104@yahoo.com> writes:

> Please allow me to ask one more question. How about
> incoming parameters?  (the running example that I used
> has
> three int type arguments - in other words, caller
> (main) will
> pushl 3 times to pass the arguments in the stack). 
> Aren't 
> incoming parameters considered as the part of
> activation 
> record (stack frame)?

gcc will try to align the stack to the preferred stack boundary
(default 16) at function entry.  For this purpose the incoming
parameters are part of the caller's stack frame.

Ian


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