Aligning a Variable Declaration

Use the alignment attribute to specify a variable's alignment. For example, the following variable declaration aligns V1 on a 16-byte boundary.

int V1[4] __attribute__ ((aligned (16)));
  

The following variable declaration aligns V2 on a 2-byte boundary.

int V2[4] __attribute__ ((aligned (2)));