About This Manual

This publication documents the #pragma directives that are supported for the 7.4 release of the SGI MIPSpro C and C++ compilers. The pragma directives are used within the source program to request special processing. Although pragmas are part of the C/C++ language, the meaning of the pragma is implementation-specific.

Related Publications

The following documents contain information that may be helpful in porting code to the newer SGI compilers:

  • MIPS O32 Compiling and Performance Tuning Guide

  • MIPSpro N32/64 Compiling and Performance Tuning Guide

  • MIPSpro N32 ABI Handbook

  • MIPSpro 64-Bit Porting and Transition Guide

The following documents contain information about SGI's implementation of C and C++:

  • C Language Reference Manual

  • C++ Programmer's Guide

Several performance evaluation and debugging tools are available to help you optimize and evaluate your code. See the ProDev WorkShop: Overview for a description of the different tools that are available.

See the Guides to SGI Compilers and Compiling Tools for an overview of all SGI compilers, compiler documentation, optimization tools, porting tools, and performance tools.

In addition to the above SGI documentation, several third party documents contain additional information which may be helpful. These books can be ordered from any book vendor:

  • Bjarne Stroustrup. The C++ Programming Language. Addison-Wesley Publishing Company, special edition, 2000. ISBN 0201700735.

  • Josuttis, Nicolai. The C++ Standard Library: A Tutorial and Reference. Addison-Wesley Publishing Company, 1999. ISBN 0201379260.

  • The C++ Standard, ISO/IEC 14882, Information Technology -- Programming Languages -- C++ is available from the American Standards Institute at http://www.ansi.org.

Obtaining Publications

You can obtain SGI documentation in the following ways:

  • See the SGI Technical Publications Library at http://docs.sgi.com. Various formats are available. This library contains the most recent and most comprehensive set of online books, release notes, man pages, and other information.

  • If it is installed on your SGI system, you can use InfoSearch, an online tool that provides a more limited set of online books, release notes, and man pages. With an IRIX system, select Help from the Toolchest, and then select InfoSearch. Or you can type infosearch on a command line.

  • You can also view release notes by typing either grelnotes or relnotes on a command line.

  • You can also view man pages by typing man title on a command line.


The following conventions are used throughout this document:




This fixed-space font denotes literal items such as commands, files, routines, path names, signals, messages, and programming language structures.


Italic typeface denotes variable entries and words or concepts being defined.

user input 

This bold, fixed-space font denotes literal items that the user enters in interactive sessions. (Output is shown in nonbold, fixed-space font.)

[ ] 

Brackets enclose optional portions of a command or directive line.


Ellipses indicate that a preceding element can be repeated.

Reader Comments

If you have comments about the technical accuracy, content, or organization of this publication, contact SGI. Be sure to include the title and document number of the publication with your comments. (Online, the document number is located in the front matter of the publication. In printed publications, the document number is located at the bottom of each page.)

You can contact SGI in any of the following ways:

  • Send e-mail to the following address:

    [email protected]

  • Use the Feedback option on the Technical Publications Library Web page:


  • Contact your customer service representative and ask that an incident be filed in the SGI incident tracking system.

  • Send mail to the following address:

    Technical Publications
    1600 Amphitheatre Parkway, M/S 535
    Mountain View, California 94043-1351

  • Send a fax to the attention of “Technical Publications” at +1 650 932 0801.

SGI values your comments and will respond to them promptly.