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

ID 767253
Date 6/24/2024
Public

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

Document Table of Contents

Pragmas Compatible with Other Compilers

The Intel® oneAPI DPC++/C++ Compiler supports the following pragmas to ensure compatibility with other compilers.

Pragmas Compatible with the Microsoft* Compiler

The following pragmas are compatible with the Microsoft Compiler. For more information about these pragmas, go to the Microsoft Developer Network (http://msdn.microsoft.com).

Pragma

Description

alloc_text

Names the code section where the specified function definitions are to reside.

bss_seg

Indicates to the compiler the segment where uninitialized variables are stored in the .obj file.

code_seg

Specifies a code section where functions are to be allocated.

comment

Places a comment record into an object file or executable file.

component

Controls collecting of browse information or dependency information from within source files.

Pragmas Supported for GCC-Compatible Compilers

The following pragmas are compatible with GCC-compatible compilers. For more information about these pragmas, see the documentation for that compiler.

Pragma

Description

poison

Labels the identifiers you want removed from your program; an error results when compiling a "poisoned" identifier; #pragma POISON is also supported.

This is a GCC-compatible pragma

options

Sets the alignment of fields in structures.

This is a GCC-compatible pragma

weak

Declares the symbol you enter to be weak.

This is a GCC-compatible pragma

See Also