[fpc-devel] Patch, font rendering on Arm-Linux devices.
Luiz Americo Pereira Camara
pascalive at bol.com.br
Sat Mar 1 02:00:08 CET 2008
Jonas Maebe wrote:
>
> On 29 Feb 2008, at 01:55, Luiz Americo Pereira Camara wrote:
>
>> One more question:
>>
>> The VirtualTreeView tries to make the fields of the (packed) record
>> aligned at dword boundary by grouping together smaller (one or two
>> byte fields) or adding dummy fields. Does this trick overrides the
>> unaligned memory access?
>
> Not at this time.
>
Due to differences in sets size, the layout is different between fpc and
Delphi.
Using packed records i save 4 bytes per record.
Compiled under Delphi the structure is bellow.
The question is: using the layout below with packed (i can force the set
size to be equal to Delphi) i still have unaligned memory access?
Index Size: 4 Offset: 0
ChildCount Size: 4 Offset: 4
NodeHeight Size: 2 Offset: 8
States Size: 2 Offset: 10
Align Size: 1 Offset: 12
CheckState Size: 1 Offset: 13
CheckType Size: 1 Offset: 14
Dummy Size: 1 Offset: 15
Luiz
More information about the fpc-devel
mailing list