User and Reference Guide for the Intel® C++ Compiler 14.0

align

Directs the compiler to align the variable to a specified boundary and a specified offset.

Syntax

Windows* OS:

__declspec(align(n,off))

Linux* OS:

__attribute__((align(n,off)))

Arguments

n

Specifies the alignment. The compiler will align the variable to an n-byte boundary.

off

Specifies the offset. If this argument is omitted, the value is 0.

Description

This keyword directs the compiler to align the variable to an n-byte boundary with offset off within each n-byte boundary. The address of the variable is address mod n=off.


Submit feedback on this help topic