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: Why gcc align stack to 16-bytes when passing arguments to a function?


cheng long <kevinclcn@gmail.com> writes:

>  The colored lines show that gcc has aligned the stack to 16-bytes. Why is that?

See the documentation of the -mpreferred-stack-boundary option.  The
preferred stack boundary is enforced by aligning the stack in 'main',
and keeping it aligned thereafter.

Ian


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