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.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>C compiler option: --preprocess (-E)Menu entry1. Select C/C++ Compiler » Preprocessing.2. Enable the option Store preprocessor output in .pre.3. (Optional) Enable the option Keep comments in preprocessor output.4. (Optional) Enable the option Keep #line info in preprocessor output.Command line syntax--preprocess[=flags]-E[flags]You can set the following flags:+/-comments+/-includes+/-list+/-make+/-nolineDefault: -ECILMPDescriptionc/Ci/Il/Lm/Mp/Pkeep commentsgenerate a list of included source filesgenerate a list of macro definitionsgenerate dependencies <strong>for</strong> makestrip #line source position in<strong>for</strong>mationWith this option you tell the compiler to preprocess the C source. Under Eclipse the compiler sends thepreprocessed output to the file name.pre (where name is the name of the C source file to compile).Eclipse also compiles the C source.On the command line, the compiler sends the preprocessed file to stdout. To capture the in<strong>for</strong>mation ina file, specify an output file with the option --output.With --preprocess=+comments you tell the preprocessor to keep the comments from the C source filein the preprocessed output.With --preprocess=+includes the compiler will generate a list of all included source files.The preprocessoroutput is discarded.With --preprocess=+list the compiler will generate a list of all macro definitions.The preprocessor outputis discarded.With --preprocess=+make the compiler will generate dependency lines that can be used in a Makefile.The preprocessor output is discarded. The default target name is the basename of the input file, with theextension .obj. With the option --make-target you can specify a target name which overrules the defaulttarget name.346

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

Saved successfully!

Ooh no, something went wrong!