[fpc-devel] (no subject)

Florian Klaempfl florian at freepascal.org
Fri Aug 12 09:39:47 CEST 2005


Ростислав Окулов wrote:
> How I can aligh data in FPC like in C?
> 
> struct __declspec(align(16)) VECTOR4F
> {
>     float x;
>     float y;
>     float z;
>     float w;
> };

FPC can align local data only up to 4 byte boundaries. Aligning to 16 byte
boundaries done by the compiler requires too much extra code because at every
procedure entry the stack must be realigned so causing often a slow down.




More information about the fpc-devel mailing list