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: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: 24 Apr 2005 14:04:19 -0400
- Subject: Re: Stack frame question on x86 code generation
- References: <20050424150307.18300.qmail@web50303.mail.yahoo.com>
Gang-Ryung Uh <uh18104@yahoo.com> writes:
> It appears that gcc seems to generate code to make
> %esp aligned
> in 16bytes boundary. If this correct, then what is the
> benefit in
> x86. Why 2 words boundary? Targeting for I64? Are
> there any
> x86 instructions to exploit such alighment to reduce
> the
> function call overhead or context switch?
See the documentation for the -mpreferred-stack-boundary option.
Ian