This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Stack frame question on x86 code generation
- From: Ian Lance Taylor <ian at airs dot com>
- To: Gang-Ryung Uh <uh18104 at yahoo dot com>
- Cc: Arturas Moskvinas <arturas dot moskvinas at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: 24 Apr 2005 21:55:05 -0400
- Subject: Re: Stack frame question on x86 code generation
- References: <20050424205942.47106.qmail@web50302.mail.yahoo.com>
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