Am 19.11.2011 11:31, schrieb Sergei Gorelkin:
> 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,

Isn't the alignment sticky to the type?

So declaring the type once with the right recordaligmax should be
sufficient?

>  - it aligns all other local variables that do not need to be aligned.
> 
> Regards,
> Sergei
> _______________________________________________
> fpc-devel maillist  -  fpc-devel@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to