Specifying the alignment of variables using the ALIGN directive
Yvonne Ma 270003Y3PJ Visits (1107)
Starting from XL Fortran V14.1, you can use the ALIGN directive to specify the alignment of variables in memory. By specifying an alignment value that is bigger than natural alignment, you can improve performance through taking advantage of the vector facilities.
In the following example, aligning the arrays to a 16-byte boundary gives the optimizer an opportunity of using a vector instruction of the add operation. For the syntax and rules of the ALIGN directive, visit ALIGN.
REAL x(4), y(4), z(4)