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=57908I 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