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.

<strong>Compiler</strong> optionsSee also Severity levels, page 137.Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Diagnostics>Enable remarks--require_prototypesSyntaxDescription--require_prototypesUse this option to force the compiler to verify that all functions have proper prototypes.Using this option means that code containing any of the following will generate an error:●●A function call of a function with no declaration, or with a Kernighan & RitchieCdeclarationA function definition of a public function with no previous prototype declaration● An indirect function call through a function pointer with a type that does not includea prototype.Note: This option only applies to functions in the C standard library.Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Language>Require prototypes--save_reg20SyntaxDescription--save_reg20Use this option to make all interrupt functions be treated as a __save_reg20 declaredfunction. This means that you do not have to explicitly use the __save_reg20 keywordon any interrupt functions.This is necessary if your application requires that all 20 bits of registers are preserved.The drawback is that the code will be somewhat slower.Note: This option is only available when compiling for the <strong>MSP430</strong>X architecture.See also __save_reg20, page 197Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Code>20-bit context save on interruptPart 2. <strong>Compiler</strong> <strong>reference</strong>165

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

Saved successfully!

Ooh no, something went wrong!