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.

Descriptions of pragma directivesinlineSyntax#pragma inline[=forced]ParametersforcedDisables the compiler’s heuristics and forces inlining.DescriptionUse this pragma directive to advise the compiler that the function whose declarationfollows immediately after the directive should be inlined—that is, expanded into thebody of the calling function. Whether the inlining actually takes place is subject to thecompiler’s heuristics.This is similar to the <strong>C++</strong> keyword inline, but has the advantage of being available inC code.Specifying #pragma inline=forced disables the compiler’s heuristics and forcesinlining. If the inlining fails for some reason, for example if it cannot be used with thefunction type in question (like printf), an error message is emitted.Note: Because specifying #pragma inline=forced disables the compiler’sheuristics, including the inlining heuristics, the function declared immediately after thedirective will not be inlined on optimization levels 0–3. No error or warning messagewill be emitted.languageSyntax#pragma language={extended|default}ParametersextendeddefaultTurns on the <strong>IAR</strong> Systems language extensions and turns off the--strict_ansi command line option.Uses the language settings specified by compiler options.DescriptionUse this pragma directive to enable the compiler language extensions or for using thelanguage settings specified on the command line.206<strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>Reference Guide

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

Saved successfully!

Ooh no, something went wrong!