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> optionsProject>Options>General Options>Target>Device-DSyntax-D symbol[=value]ParameterssymbolvalueThe name of the preprocessor symbolThe value of the preprocessor symbolDescriptionUse this option to define a preprocessor symbol. If no value is specified, 1 is used. Thisoption can be used one or more times on the command line.The option -D has the same effect as a #define statement at the top of the source file:-Dsymbolis equivalent to:#define symbol 1In order to get the equivalence of:#define FOOspecify the = sign but nothing after, for example:-DFOO=Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Preprocessor>Defined symbols--data_modelSyntax--data_model={small|medium|large}Parameterssmall (default)mediumlargeSets data16 as the default memory type, both for data objects andpointers. This means that the first 64 Kbytes of memory can beaccessed.Sets data16 as the default memory type, both for data objects andpointers. This means that the first 64 Kbytes of memory can beaccessed. But if required, also the entire memory can be used.Sets data20 as the default memory type, both for data objects andpointers. This means that the entire memory range can be accessed.Part 2. <strong>Compiler</strong> <strong>reference</strong>145

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

Saved successfully!

Ooh no, something went wrong!