[fpc-pascal] Memory alignment with FPC
dhkblaszyk at zeelandnet.nl
dhkblaszyk at zeelandnet.nl
Wed Oct 10 14:40:10 CEST 2012
On 10 okt '12, Jonas Maebe wrote:
> On 10 Oct 2012, at 12:02,
dhkblaszyk at zeelandnet.nl [1] 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
> m
>
>> r are
they undefined?
>>
>> They are undefined.
>> Jonas
One more
question, when using packed records, is there anything to say about
performance? Are there some tests anywhere that show how the performance
is impacted?
Darius
Links:
------
[1]
mailto:dhkblaszyk at zeelandnet.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20121010/f17e3b3e/attachment.html>
More information about the fpc-pascal
mailing list