In article <slrnetod98.mg3.marcov@[EMAIL PROTECTED]
>,
Marco van de Voort <marcov@[EMAIL PROTECTED]
> wrote:
> As far as I got it from a recent discussion with FPC devels:
>
> - packrecords <x> means that a field of size <x> is aligned on a <x>
byte
> boundery.
> - A field with a larger size than <x> is also aligned on <x>
The more common way to say this is, that
a) every type has a so-called natural alignment, which usually (but not
always!) is the size of this type
b) {$packrecords x} means that if a type appears in a record, it will be
aligned at min(x,natural_alignment(type)).
> - packrecords C says to take the default of C. I believe it
> nowadays also can be 8.
No, packrecords C has its own semantics which are different from
{$packrecords x}. Moreover these semantics vary between different
platforms.
Jonas


|