Hello,
Based on the description of {$ALIGN xx} in the programmer's guide, I expected the fields of the record in the sample program below to be aligned on a 32 byte boundary but, they aren't, since if they were the record size could not be 16 bytes. What am I missing ?
test program follows:
{$APPTYPE CONSOLE}
{$ALIGN 32} { doesn't seem to change the record size }
program TestAlignment;
type
ARecord = record
A : qword;
B : qword;
end;
begin
writeln;
writeln;
writeln(' sizeof ARecord = ', sizeof(ARecord));
writeln;
writeln;
writeln('press ENTER/RETURN to end this program');
readln;
end.