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.

<strong>Compiler</strong> optionsThis chapter describes the syntax of compiler options and the general syntaxrules for specifying option parameters, and gives detailed <strong>reference</strong>information about each option.Options syntax<strong>Compiler</strong> options are parameters you can specify to change the default behavior of thecompiler. You can specify options from the command line—which is described in moredetail in this section—and from within the <strong>IAR</strong> Embedded Workbench IDE.Refer to the <strong>MSP430</strong> <strong>IAR</strong> Embedded Workbench® IDE User Guide for informationabout the compiler options available in the <strong>IAR</strong> Embedded Workbench IDE and how toset them.TYPES OF OPTIONSThere are two types of names for command line options, short names and long names.Some options have both.●●A short option name consists of one character, and it may have parameters. Youspecify it with a single dash, for example -eA long option name consists of one or several words joined by underscores, and itmay have parameters. You specify it with double dashes, for example--char_is_signed.For information about the different methods for passing options, see Passing options,page 133.RULES FOR SPECIFYING PARAMETERSThere are some general syntax rules for specifying option parameters. First, the rulesdepending on whether the parameter is optional or mandatory, and whether the optionhas a short or a long name, are described. Then, the rules for specifying filenames anddirectories are listed. Finally, the remaining rules are listed.Rules for optional parametersFor options with a short name and an optional parameter, any parameter should bespecified without a preceding space, for example:-O or -OhbPart 2. <strong>Compiler</strong> <strong>reference</strong> 139

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

Saved successfully!

Ooh no, something went wrong!