The PPC arch likes to access physical devices with C structures that correspond to a memory map of device registers. But a colleague says that structure layout is not guaranteed. In fact, he cited two instances when he got burned by assuming he could predict structure layout. But neither of those examples were with GCC.
Does GCC make guarantees beyond what ANSI requires? Is there some subtle detail that forces struct layout ("volatile" in the definition perhaps)? Thanks, -kb ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/