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.

Supported <strong>MSP430</strong> devicesIt is also possible to implement parts of the application, or the whole application, inassembler language. See the <strong>MSP430</strong> <strong>IAR</strong> Assembler Reference Guide.For more information about the Embedded <strong>C++</strong> language and Extended Embedded<strong>C++</strong>, see the chapter Using <strong>C++</strong>.Supported <strong>MSP430</strong> devicesThe <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> supports all devices based on the standard TexasInstruments <strong>MSP430</strong> microcontroller, which includes both the <strong>MSP430</strong> architectureand the <strong>MSP430</strong>X architecture. In addition, the application can use the hardwaremultiplier if available on the device.Building applications—an overviewA typical application is built from a number of source files and libraries. The source filescan be written in C, <strong>C++</strong>, or assembler language, and can be compiled into object filesby the <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> or the <strong>MSP430</strong> <strong>IAR</strong> Assembler.A library is a collection of object files that are added at link time only if they are needed.A typical example of a library is the compiler library containing the runtimeenvironment and the C/<strong>C++</strong> standard library. Libraries can also be built using the <strong>IAR</strong>XAR Library Builder, the <strong>IAR</strong> XLIB Librarian, or be provided by external suppliers.The <strong>IAR</strong> XLINK Linker is used for building the final application. XLINK normally usesa linker command file, which describes the available resources of the target system.Below, the process for building an application on the command line is described. Forinformation about how to build an application using the <strong>IAR</strong> Embedded WorkbenchIDE, see the <strong>MSP430</strong> <strong>IAR</strong> Embedded Workbench® IDE User Guide.COMPILINGIn the command line interface, the following line compiles the source file myfile.cinto the object file myfile.r43 using the default settings:icc430 myfile.cIn addition, you need to specify some critical options, see Basic settings for projectconfiguration, page 5.4<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!