> If the structure you show above is the only one, then no, it won't
> cause problems. However, regardless of the compiler settings, the
> MC68000 core CPU that's in the DragonBall requires even addresses when
> accessing data that is 16-bit or longer. Maybe a CodeWarrior expert
> needs to jump into this to explain exactly what PowerPC alignment does
> to that compiler (it obviously packs char data, but how does it align
> 16-bit or longer data types?). If PowerPC alignment does remove all
> padding, then something like
PowerPC alignment puts data on their natural boundaries. That is,
single-byte characters can go at any address, 2-byte values go on even
addresses, 4-byte values go on addresses divisible by four. Offhand, I
don't think PowerPC alignment goes beyond 4-byte values (ie, an 8-byte value
could still be at a 4-byte address), but I could be wrong.
---- --- -- -
Matthew D Moss
[EMAIL PROTECTED]