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.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>C compiler option: --runtime (-r)Menu entry1. Select C/C++ Compiler » Debugging.2. Enable or disable one or more of the following run-time error checking options:• Generate code <strong>for</strong> bounds checking• Generate code to detect unhandled case in a switch• Generate code <strong>for</strong> malloc consistency checks• Generate code <strong>for</strong> stack overflow checks (allowed <strong>for</strong> USR and SYS mode only)• Generate code <strong>for</strong> division by zero checksCommand line syntax--runtime[=flag,...]-r[flags]You can set the following flags:+/-bounds+/-case+/-malloc+/-stack+/-zerob/Bc/Cm/Ms/Sz/Zbounds checkingreport unhandled case in a switchmalloc consistency checkscheck <strong>for</strong> stack overflowcheck <strong>for</strong> divide by zeroDefault (without flags): -rbcmSZDescriptionThis option controls a number of run-time checks to detect errors during program execution. Some ofthese checks require additional code to be inserted in the generated code, and may there<strong>for</strong>e slow downthe program execution. The following checks are available:Bounds checkingEvery pointer update and dereference will be checked to detect out-of-bounds accesses, null pointersand uninitialized automatic pointer variables. This check will increase the code size and slow down theprogram considerably. In addition, some heap memory is allocated to store the bounds in<strong>for</strong>mation. Youmay enable bounds checking <strong>for</strong> individual modules or even parts of modules only (see #pragmaruntime).352

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

Saved successfully!

Ooh no, something went wrong!