[fpc-devel] Alignment question
Sergei Gorelkin
sergei_gorelkin at mail.ru
Sat Nov 19 11:31:37 CET 2011
Hello,
Is it possible to declare a (SSE friendly) record or array type, so that local variables of this
type get aligned to e.g. 16 bytes? Target is x86_64 with aligned stack.
The {$codealign localmin=16} directive seems to work, but it is an ugly solution because:
- it must be effective at all places where variables of the given type are declared,
- it aligns all other local variables that do not need to be aligned.
Regards,
Sergei
More information about the fpc-devel
mailing list