[Lazarus] [fpc-devel] win64 dwarf patch

Benito van der Zander benito at benibela.de
Sat Oct 16 17:36:57 CEST 2010


>> CstomData: packed record
>>      case integer of
>>        0 : (i64: int64);
>>        1 : (lo32, hi32 : Cardinal);
>>        2 : (Words : Array[0..3] of Word);
>>        3 : (Bytes : Array[0..7] of Byte);
>>        4 : (p : pointer);
>>        5 : (obj : TObject);
>>   end;
> You just invented a Variant type.

Yes, but one that needs much less memory than default fpc variant (8 
byte vs. 24 byte)
This record is always a better data type than int64 for custom data, but 
for variant this is not sure.

Benito




More information about the Lazarus mailing list