title: __attribute__(packed) v/s GCC __attribute__((aligned(x))
body: <p>Following GCC <code>__attribute__(packed )</code> will pack to byte boundary, aligned is used for which purpose  :--</p>
  
  <pre><code>u8 rx_buf[14] __attribute__((aligned(8)));  
  struct S { short f[3]; } __attribute__ ((aligned (8)));
  </code></pre>
  
  <p>above array will be of 16 byte, am I right.</p>
  
  <p>means <code>sizeof(rx_buff)</code> will be 16 byte .. i.e 2 byte alignment at end </p>