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>cparm --define=DEMO test.cccparm --define=DEMO=1 test.ccNote that both invocations have the same effect.The next example shows how to define a macro with arguments. Note that the macro name and definitionare placed between double quotes because otherwise the spaces would indicate a new option.cparm --define="MAX(A,B)=((A) > (B) ? (A) : (B))" test.ccRelated in<strong>for</strong>mationC++ compiler option --undefine (Remove preprocessor macro)C++ compiler option --option-file (Specify an option file)420

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

Saved successfully!

Ooh no, something went wrong!