11.07.2015 Views

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

MSP430 IAR C/C++ Compiler reference guide - Rice University

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The preprocessorThis chapter gives a brief overview of the preprocessor, including <strong>reference</strong>information about the different preprocessor directives, symbols, and otherrelated information.Overview of the preprocessorThe preprocessor of the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> adheres to the ISO/ANSIstandard. The compiler also makes the following preprocessor-related features availableto you:●●●●Predefined preprocessor symbolsThese symbols allow you to inspect the compile-time environment, for example thetime and date of compilation. For details, see Descriptions of predefinedpreprocessor symbols, page 226.User-defined preprocessor symbols defined using a compiler optionIn addition to defining your own preprocessor symbols using the #define directive,you can also use the option -D, see -D, page 145.Preprocessor extensionsThere are several preprocessor extensions, for example many pragma directives; formore information, see the chapter Pragma directives in this <strong>guide</strong>. Read also aboutthe corresponding _Pragma operator and the other extensions related to thepreprocessor, see Descriptions of miscellaneous preprocessor extensions, page 228.Preprocessor outputUse the option --preprocess to direct preprocessor output to a named file, see--preprocess, page 163.Some parts listed by the ISO/ANSI standard are implementation-defined, for examplethe character set used in the preprocessor directives and inclusion of bracketed andquoted filenames. To read more about this, see Preprocessing directives, page 256.Part 2. <strong>Compiler</strong> <strong>reference</strong> 225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!