Re: Stack allocation on amd64

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

 



On 03/09/2018 12:57 PM, Mason wrote:

The main question remains: why is gcc allocating e.g. 24 bytes
for an 8-byte array? (N=2) 8 bytes are enough AFAICT.

There is some discussion regarding this matter in this bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908

I find the ABI requirement and the current compiler behavior a bit puzzling, and it seems that we don't reduce alignment for small arrays on the stack with -Os, as suggested in the report.

Thanks,
Florian



[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