Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-12

Re: Data alignment of records

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luis Fernando Del Aguila Mejía
Maybe a better question is: why do you want to know the alignment of different data types? Since it can change depending on which platform you are compiling for, writing your code assuming a particular alignment is generally a very bad idea.

Not only want to know the alignment of different data types, there are also other things, the reasons are:

1. Because I want to learn and understand how the compiler works.
2. If I find a mistake, I would like to know how to fix it

thanks.

Luis Fernando Del Aguila Mejía
Maybe a better question is: why do you want to know the alignment of different data types? Since it can change depending on which platform you are compiling for, writing your code assuming a particular alignment is generally a very bad idea.

Not only want to know the alignment of different data types, there are also other things, the reasons are:

1. Because I want to learn and understand how the compiler works.
2. If I find a mistake, I would like to know how to fix it

thanks.