Hi, I know it only from CodeWarrior but never mind, it is the same situation as other compilers are based on same EABI standard. The global setting has an option “Struct Alignment” its description says following:
The Struct Alignment drop-down list has the default selection PowerPC. To conform with the PowerPC EABI and interoperate with third-party object code, this setting should remain PowerPC. Other settings may lead to reduced performance or alignment violation exceptions. If you choose another setting for Struct Alignment, your code may not work correctly. The options available are as follows:
- PowerPC
- 68K
- 68K 4-byte
If PowerPC alignment is chosen, struct content is aligned to content size and may contain padding bytes. Thus, access to such content should not lead in misaligned access.
