Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

code_align

Specifies the byte alignment for a loop

Syntax

#pragma code_align(n)

Arguments

n

Optional. A positive integer initialization expression indicating the number of bytes for the minimum alignment boundary. Its value must be a power of 2, between 1 and 4096, such as 1, 2, 4, 8, and so on.

If you specify 1 for n, no alignment is performed. If you do not specify n, the default alignment is 16 bytes.

Description

This pragma must precede the loop to be aligned.

If the code is compiled with the Qalign-loops:m option, and a code_align(n) pragma precedes a loop, the loop is aligned on a max (m, n) byte boundary. If a procedure has the code_align(k) attribute and a code_align(n) pragma precedes a loop, then both the procedure and the loop are aligned on a max (k, n) byte boundary.