hi,
I am porting our application from solaris sparc to solaris x86 and I encountered a size differences of struct between these two architecture. for example; I have a struct like
typedef struct mystructS
{
double a;
double b;
double c;
double d;
double e;
double f;
double g;
double h;
double aa;
double ab;
double ac;
double ad;
double ae;
double af
double ag;
double ah;
int ba;
int bb;
int bc;
char ca[256];
} mystructT;
When i write sizeof(mystructT)
in solaris X86, it returns 396
When i write sizeof(mystructT)
in solaris SPARC, it returns 400
I just curious, why something like this happens?
EDIT: both solaris systems are 32 bit.