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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tool OptionsWith --preprocess=+make the compiler will generate dependency lines that can be used in a Makefile.The in<strong>for</strong>mation is written to a file with extension .d. The preprocessor output is discarded. The defaulttarget name is the basename of the input file, with the extension .obj. With the option --make-targetyou can specify a target name which overrules the default target name.With --preprocess=+noline you tell the preprocessor to strip the #line source position in<strong>for</strong>mation (linesstarting with #line). These lines are normally processed by the assembler and not needed in thepreprocessed output. When you leave these lines out, the output is easier to read.Exampleccarm --preprocess=+comments,-make,-noline --no-preprocessing-only test.cThe compiler preprocesses the file test.c and sends the output to the file test.pre. Comments areincluded but no dependencies are generated and the line source position in<strong>for</strong>mation is not stripped fromthe output file. Next, the control program calls the compiler, assembler and linker to create the final objectfile test.absRelated in<strong>for</strong>mationControl program option --dep-file (Generate dependencies in a file)Control program option --make-target (Specify target name <strong>for</strong> -Em output)639

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

Saved successfully!

Ooh no, something went wrong!