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.

Data types in <strong>C++</strong>constant and non-constant objects. It is good programming practice to use constdeclared pointers whenever possible because this improves the compiler’s possibilitiesto optimize the generated code and reduces the risk of application failure due toerroneously modified data.Static and global objects declared const are allocated in ROM.In <strong>C++</strong>, objects that require runtime initialization cannot be placed in ROM.Data types in <strong>C++</strong>In <strong>C++</strong>, all plain C data types are represented in the same way as described earlier in thischapter. However, if any Embedded <strong>C++</strong> features are used for a type, no assumptionscan be made concerning the data representation. This means, for example, that it is notlegal to write assembler code that accesses class members.178<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!