>
> By using the correct types for the fields:
> http://www.freepascal.org/docs-html/rtl/ctypes/index-3.html
>
> 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 :

​{$CODEALIGN RECORDMIN=4}

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?

Thanks!
​Xiangrong​




> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to