Unless you tell the compiler to do otherwise, it will correctly align 32-bit variables.
You can write code that puts 32-bit variables into unaligned addresses (for example, by creating a char array and writing your int to an odd index in the array).
You can also use the #pragmas compiler to tell the compiler not to agree on specific types or variables.
But if you do not, your variables will be correctly aligned.
jalf
source share