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.

Getting startedThis chapter gives the information you need to get started using the <strong>MSP430</strong><strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> for efficiently developing your application.First you will get an overview of the supported programming languages,followed by a description of the steps involved for compiling and linking anapplication.Next, the compiler is introduced. You will get an overview of the basic settingsneeded for a project setup, including an overview of the techniques that enableapplications to take full advantage of the <strong>MSP430</strong> microcontroller. In thefollowing chapters, these techniques will be studied in more detail.<strong>IAR</strong> language overviewThere are two high-level programming languages you can use with the <strong>MSP430</strong> <strong>IAR</strong>C/<strong>C++</strong> <strong>Compiler</strong>:●●C, the most widely used high-level programming language used in the embeddedsystems industry. Using the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong>, you can buildfreestanding applications that follow the standard ISO 9899:1990. This standard iscommonly known as ANSI C.<strong>C++</strong>, a modern object-oriented programming language with a full-featured librarywell suited for modular programming. <strong>IAR</strong> Systems supports two levels of the<strong>C++</strong> language:●●Embedded <strong>C++</strong> (E<strong>C++</strong>), a subset of the <strong>C++</strong> programming standard, which isintended for embedded systems programming. It is defined by an industryconsortium, the Embedded <strong>C++</strong> Technical committee. See the chapter Using<strong>C++</strong>.<strong>IAR</strong> Extended Embedded <strong>C++</strong>, with additional features such as full templatesupport, multiple inheritance, namespace support, the new cast operators, as wellas the Standard Template Library (STL).Each of the supported languages can be used in strict or relaxed mode, or relaxed with<strong>IAR</strong> extensions enabled. The strict mode adheres to the standard, whereas the relaxedmode allows some deviations from the standard. For more details, see the chapter<strong>Compiler</strong> extensions.Part 1. Using the compiler 3

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

Saved successfully!

Ooh no, something went wrong!