[fpc-devel] Data alignment feature
Jonas Maebe
jonas at freepascal.org
Sat Jan 27 17:33:34 CET 2018
Adriaan van Os wrote:
> J. Gareth Moreton wrote:
>
>> For Florian's fix though, any local variables are given the correct
>> alignment on the stack, even if the stack is unaligned beforehand.
>
> That's good news. Can you give a small code example ?
The x86-64 ABIs mandate 16 byte alignment of the stack after the
compiler-generated entry code.
> And I would
> suggest to add test-programs (checking the addeess of aligned global,
> heap and stack variables) to the fpc test-suite,
There is already such a test program (except for heap, as we don't
guarantee any alignment for heap-allocated memory and hence there is
nothing to test).
Jonas
More information about the fpc-devel
mailing list