Compiler question for shared memory?
I have a structure of different data types, floats, shorts, unchar's I have it in shared memory. My question is, will the compiler "pad" the structure to make it unsafe to use the structure fields  that can be accessed linearly from the structure's base address by using a structure pointer?

I guess I'm asking, is there any instance that where structure->foo might return garbage from shared structure in memory, if the compiler padded extra bytes between data types within the structure.
Compiler question for shared memory?
===

I have a structure of different data types, floats, shorts, unchar's I have it in shared memory. My question is, will the compiler "pad" the structure to make it unsafe to use the structure fields  that can be accessed linearly from the structure's base address by using a structure pointer?

I guess I'm asking, is there any instance that where structure->foo might return garbage from shared structure in memory, if the compiler padded extra bytes between data types within the structure.