Re: [fpc-pascal] Data alignment of records

2010-12-09 Thread Jonas Maebe
On 09 Dec 2010, at 22:33, Luis Fernando Del Aguila Mejía wrote: > I can not understand the data alignment of records. > I compiled the program PackRecordsDemo, > http://www.freepascal.org/docs-html/ref/refsu16.html#x40-470003.3.2 sample > documentation. > But the result on my computer is differ

[fpc-pascal] Data alignment of records

2010-12-09 Thread Luis Fernando Del Aguila Mejía
I can not understand the data alignment of records. I compiled the program PackRecordsDemo, http://www.freepascal.org/docs-html/ref/refsu16.html#x40-470003.3.2 sample documentation. But the result on my computer is different: Size Trec1 : 4 Offset B : 2 Size Trec2 : 3 Offset B : 1 Size Trec3 :