[fpc-pascal] Memory alignment with FPC
dhkblaszyk at zeelandnet.nl
dhkblaszyk at zeelandnet.nl
Wed Oct 10 12:02:48 CEST 2012
Does FPC ensure the same memory alignment for records and objects
over different platforms? If I want to be sure to have the same
alignment must I use packed (with possibly some aligning assigned)
records instead in combination with data types that are guaranteed to be
of the same size over the different platforms (eg byte, word, single) ?
Or do unpacked records behave the same over different platforms?
When
memory is alligned (either with {$PACKRECORDS N} or unpacked, are the
padding bytes quaranteed to be #0 or are they undefined?
Any help
appreciated.
Regards, Darius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121010/63363699/attachment.html>
More information about the fpc-pascal
mailing list