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.

Basic settings for project configuration●●Size of double floating-point typeOptimization settings● Runtime environment.In addition to these settings, there are many other options and settings available forfine-tuning the result even further. For details about how to set options and for a list ofall available options, see the chapters <strong>Compiler</strong> options and the <strong>MSP430</strong> <strong>IAR</strong> EmbeddedWorkbench® IDE User Guide, respectively.PROCESSOR CONFIGURATIONTo make the compiler generate optimum code, you should configure it for the <strong>MSP430</strong>microcontroller you are using.CoreThe <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong> <strong>Compiler</strong> supports the <strong>MSP430</strong> microcontroller, both the<strong>MSP430</strong> architecture that has 64 Kbytes of addressable memory and the <strong>MSP430</strong>Xarchitecture that has the extended instruction set and 1 Mbyte of addressable memory.In the <strong>IAR</strong> Embedded Workbench IDE, choose Project>Options and select anappropriate device from the Device drop-down list on the Target page. The core optionwill then be automatically selected.Note: Device-specific configuration files for the XLINK linker and the C-SPYdebugger will also be automatically selected.Use the --core={430|430X} option to select the architecture for which the code is tobe generated.Hardware multiplierSome <strong>MSP430</strong> devices contain a hardware multiplier. The <strong>MSP430</strong> <strong>IAR</strong> C/<strong>C++</strong><strong>Compiler</strong> supports this unit by means of dedicated runtime library modules.To direct the compiler to take advantage of the unit, choose Project>Options and selectthe Target page in the General Options category. Select a device, from the Devicedrop-down menu, that contains a hardware multiplier unit.To use the hardware multiplier, you should, in addition to the runtime library object file,extend the XLINK command line with an additional linker command file:-f multiplier.xclFor more information, see Hardware multiplier support, page 68.6<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!