On 10 Oct 2012, at 12:02, dhkblas...@zeelandnet.nl wrote:
Does FPC ensure the same memory alignment for records and objects over different platforms?
No, alignment is defined by the platform ABI.
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) ?
Yes.
When memory is alligned (either with {$PACKRECORDS N} or unpacked, are the padding bytes quaranteed to be #0 or are they undefined?
They are undefined. Jonas
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal