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.

The DLIB runtime environmentThe following table summarizes the capabilities of the different formatters:Formatting capabilities _ScanfFull _ScanfLarge _ScanfSmallBasic specifiers c, d, i, o, p, s, u, X,x, and %† Depends on the library configuration that is used.For information about how to fine-tune the formatting capabilities even further, seeConfiguration symbols for printf and scanf, page 62.Specifying scanf formatter in the <strong>IAR</strong> Embedded Workbench IDETo use any other formatter than the default (Large), choose Project>Options and selectthe General Options category. Select the appropriate option on the Library optionspage.Specifying scanf formatter from the command lineTo use any other variant than the default (_ScanfFull), add one of the following linesin the linker command file you are using:-e_ScanfLarge=_Scanf-e_ScanfSmall=_ScanfYes Yes YesMultibyte support † † †Floating-point specifiers a, and A Yes No NoFloating-point specifiers e, E, f, F, g, Yes No Noand GConversion specifier n Yes No NoScan set [ and ] Yes Yes NoAssignment suppressing * Yes Yes Nolong long support Yes No NoTable 14: Formatters for scanfOverriding library modulesThe library contains modules which you probably need to override with your owncustomized modules, for example functions for character-based I/O and cstartup.This can be done without rebuilding the entire library. This section describes theprocedure for including your version of the module in the application project buildprocess. The library files that you can override with your own versions are located in the430\src\lib directory.Part 1. Using the compiler53

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

Saved successfully!

Ooh no, something went wrong!