Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
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

Zp

Specifies alignment for structures on byte boundaries.

Syntax

Linux:

-Zp[n]

Windows:

/Zp[n]

Arguments

n

Is the byte size boundary. Possible values are 1, 2, 4, 8, or 16.

Default

Zp16

Structures are aligned on either size boundary 16 or the boundary that will naturally align them.

Description

This option specifies alignment for structures on byte boundaries.

If you do not specify n, you get Zp16.

IDE Equivalent

Visual Studio: Code Generation > Struct Member Alignment

Eclipse: Data > Structure Member Alignment

Alternate Options

None