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> optionswill give an error message like the following:Error[Pe144]: a value of type "char *" cannot be used toinitialize an entity of type "MyPtr"If the --no_typedefs_in_diagnostics option is used, the error message will be likethis:Error[Pe144]: a value of type "char *" cannot be used toinitialize an entity of type "int (*)(char const *)"To set this option, use Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Extra Options.--no_unrollSyntaxDescription--no_unrollUse this option to disable loop unrolling. The code body of a small loop, whose numberof iterations can be determined at compile time, is duplicated to reduce the loopoverhead.For small loops, the overhead required to perform the looping can be large comparedwith the work performed in the loop body.The loop unrolling optimization duplicates the body several times, reducing the loopoverhead. The unrolled body also opens up for other optimization opportunities.This optimization, which is performed at the optimization level High, normally reducesexecution time, but increases code size. The resulting code may also be difficult todebug.The compiler heuristically decides which loops to unroll. Different heuristics are usedwhen optimizing for speed and size.Note: This option has no effect at optimization levels below High.Project>Options>C/<strong>C++</strong> <strong>Compiler</strong>>Optimizations>Enabletransformations>Loop unrolling--no_warningsSyntaxDescription--no_warningsBy default, the compiler issues warning messages. Use this option to disable all warningmessages.Part 2. <strong>Compiler</strong> <strong>reference</strong>159

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

Saved successfully!

Ooh no, something went wrong!