no name

Different struct size in S12X and XGATE code

Discussion created by no name on May 23, 2006
Latest reply on May 24, 2006 by no name
Hello,
I have a header file that contains a struct declaration. This file is #included in both, S12X and XGATE codes. When I build them, the linker shows a warning message, something like "object 'x' has different size in a.c and b.cxgate". I think it is because XGATE needs struct members at even boundaries whereas S12 can access them from any address. Is there a #pragma to force structs to even boundaries?

Outcomes