13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tool OptionsReport unhandled case in a switchReport an unhandled case value in a switch without a default part. This check will add one function callto every switch without a default part, but it will have little impact on the execution speed.Malloc consistency checksThis option enables the use of wrappers around the functions malloc/realloc/free that will check <strong>for</strong> commondynamic memory allocation errors like:• buffer overflow• write to freed memory• multiple calls to free• passing invalid pointer to freeEnabling this check will extract some additional code from the library, but it will not enlarge your applicationcode. The dynamic memory usage will increase by a couple of bytes per allocation.Stack overflow checkThe compiler generates extra code within the function prolog that will check the available stack size be<strong>for</strong>eallocating. This is only useful when the processor runs in USR or SYS mode.Division by zero checkThe compiler generates a call to specific run-time functions <strong>for</strong> additional division by zero checks. If thissituation occurs, an abort signal is issued.Without this check, a division by zero could lead to unpredictableresults.Related in<strong>for</strong>mationPragma runtime353

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

Saved successfully!

Ooh no, something went wrong!