2024-06-25 05:48 AM
2024-06-25 05:52 AM - edited 2024-06-25 05:57 AM
Why, so the processor doesn't fault.
The CM0(+) being particularly fussy.
Other CMx will fault on misaligned LDRD/STRD.
For compact structures for files perhaps __packed or similar, but then you must address misalignment issues yourself.
Situations where you array the data, or make composite structures.
2024-06-25 05:57 AM
Thank you @Tesla DeLorean, for the very quick response.
So you are saying that all fields inside a struct, by default, are 4 bytes aligned, despite of their type.
Isn't it?
Thank you,
Carlo