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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The preprocessorPredefined symbol__func____FUNCTION____<strong>IAR</strong>_SYSTEMS_ICC____ICC430____LINE____POSITION_INDEPENDENT_CODE____PRETTY_FUNCTION____REGISTER_MODEL____STDC__Table 39: Predefined symbols (Continued)IdentifiesA string that identifies the name of the function in which thesymbol is used. This is useful for assertions and other traceutilities. The symbol requires that language extensions areenabled, see -e, page 150. See also __REGISTER_MODEL__,page 227.A string that identifies the name of the function in which thesymbol is used. This is useful for assertions and other traceutilities. The symbol requires that language extensions areenabled, see -e, page 150. See also __REGISTER_MODEL__,page 227.An integer that identifies the <strong>IAR</strong> compiler platform. Thecurrent value is 6. Note that the number could be higher in afuture version of the product. This symbol can be tested with#ifdef to detect whether the code was compiled by acompiler from <strong>IAR</strong> Systems.An integer that is set to 1 when the code is compiled with the<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>.An integer that identifies the current source line number ofthe file being compiled, which can be the base source file aswell as any included header file. *An integer that is set to 1 when the code is compiled with theoption --pic.A string that identifies the function name, including parametertypes and return type, of the function in which the symbol isused, for example "void func(char)". This symbol isuseful for assertions and other trace utilities. The symbolrequires that language extensions are enabled, see -e, page150. See also __func__, page 227.An integer that equals one of the following:__REGISTER_MODEL_REG16__ (for 430 and 430X in theSmall data model) or __REGISTER_MODEL_REG20__ (for430X in the Medium and Large data model).An integer that is set to 1, which means the compiler adheresto the ISO/ANSI C standard. This symbol can be tested with#ifdef to detect whether the compiler in use adheres toISO/ANSI C. *Part 2. <strong>Compiler</strong> <strong>reference</strong>227

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

Saved successfully!

Ooh no, something went wrong!