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:

> 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


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