[fpc-pascal] alignment of records
xrfang at gmail.com
Fri Aug 7 08:06:04 CEST 2015
> By using the correct types for the fields:
> E.g., "unsigned long" is not (always) the same as "dword".
> OK, as a matter of fact, the stuff was copied from output of h2pas
conversion program. :-) I will use ctypes to test again.
However, another issue: if I use this :
It worked. i.e. output size same as C version. I wonder what's the
difference between $CODEALIGN and $A/$PACKRECORDS?
Also, if I use "packed records", alignment will never take place,
regardless of $A settings, right?
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal