I haven't come across any compilers that reorder the member
variables of a structure.
However, most compilers do have options to choose between
efficiency and memory requirement. For example, if accessing
a 32 integer is efficient at 4 byte boundaries, the default
option would be to align it that way. The compiler may let to align
it at (say) a 1 byte boundary.
This is applicable only on platforms that will allow misaligned
transfers.
Deepa
--
http://www.EventHelix.com/EventStudio
EventStudio 2.5 - Automate sequence diagram generation