Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: C++ User's Guide Oracle Solaris Studio 12.3 Information Library |
3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using the C++ Standard Library
13. Using the Classic iostream Library
B.1.1 Overloaded Functions as Pragma Arguments
B.2.2 #pragma does_not_read_global_data
B.2.4 #pragma does_not_write_global_data
B.2.13 #pragma must_have_frame
B.2.18 #pragma returns_new_memory
This appendix describes the C++ compiler pragmas. A pragma is a compiler directive that enables the programmer to provide additional information to the compiler. This information can change compilation details that are not otherwise under your control. For example, the pack pragma affects the layout of data within a structure. Compiler pragmas are also called directives.
The preprocessor keyword pragma is part of the C++ standard, but the form, content, and meaning of pragmas is different for every compiler. No pragmas are defined by the C++ standard.
Note - Code that depends on pragmas is not portable.