Stack frame question on x86 code generation

Ian Lance Taylor ian@airs.com
Sun Apr 24 18:04:00 GMT 2005


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



More information about the Gcc-help mailing list