title: Struct size differences between solaris sparc and solaris x86
body: <p>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</p>
  
  <pre><code>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;
  </code></pre>
  
  <p>When i write <code>sizeof(mystructT)</code> in solaris X86, it returns 396</p>
  
  <p>When i write <code>sizeof(mystructT)</code> in solaris SPARC, it returns 400</p>
  
  <p>I just curious, why something like this happens?</p>
  
  <p>EDIT: both solaris systems are 32 bit.</p>