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
The sections in this chapter are:
These topics describe how to use pragmas: