[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Pragmas Overview

You set compiler options for an entire project by changing the settings in the C/C++ Language Panel. You can also control how the compiler compiles your code from within your code, using pragmas.

Many of the pragmas correspond to options in the C/C++ Language Panel and the settings panels for processors and operating systems.

Typically, you use the settings panels to set the options for most of your code and use pragmas to change the options for special cases. For example, with the C/C++ Language Panel, you can turn off a time-consuming optimization and, with a pragma, turn it on only for the code it helps most.


TIP

If you use Metrowerks command-line tools, such as those for MPW or UNIX, see the Command-Line Tools manual for information on how to duplicate the effect of #pragma statements using command-line tool options.

The sections in this chapter are:

This section describes how to use pragmas and lists and explains each pragma.

These topics describe how to use pragmas:

  • Pragma Syntax
  • Pragma Scope

  • [ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

    Visit the Metrowerks website at: http://www.metrowerks.com
    For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
    Copyright © 2000, Metrowerks Corp. All rights reserved.

    Last updated: August 17, 2000