Thanks for quick response, Wade and Ingbert! actually, alignment is also what i thought. i double-checked my target setting, which is "68k", not "68k-4byte". so it should use 2-byte alignment. Even if 68k-4byte, compiler shouldn't pad 2 extra bytes after union2 and union3, because the total size of union2 + union3 is already 4 bytes. I can try to use #pragma to force 2-byte alignment.
Thanks again -mguo -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
