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.

<strong>Compiler</strong> options●●●●For options that take a filename as the destination for output, the parameter can bespecified as a path without a specified filename. The compiler stores the output inthat directory, in a file with an extension according to the option. The filename willbe the same as the name of the compiled source file, unless a different name hasbeen specified with the option -o, in which case that name will be used. Forexample:icc430 prog -l ..\listings\The produced list file will have the default name ..\listings\prog.lstThe current directory is specified with a period (.). For example:icc430 prog -l ./ can be used instead of \ as the directory delimiter.By specifying -, input files and output files can be redirected to stdin and stdout,respectively. For example:icc430 prog -l -Additional rulesIn addition, the following rules apply:● When an option takes a parameter, the parameter cannot start with a dash (-)followed by another character. Instead, you can prefix the parameter with twodashes; the following example will create a list file called -r:●icc430 prog -l ---rFor options that accept multiple arguments of the same type, the arguments can beprovided as a comma-separated list (without a space), for example:--diag_warning=Be0001,Be0002Alternatively, the option may be repeated for each argument, for example:--diag_warning=Be0001--diag_warning=Be0002Part 2. <strong>Compiler</strong> <strong>reference</strong>141

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

Saved successfully!

Ooh no, something went wrong!