Re: Why gcc align stack to 16-bytes when passing arguments to a function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cheng long <kevinclcn@xxxxxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux