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>Control program option: --preprocess (-E) / --no-preprocessing-onlyMenu 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]--no-preprocessing-onlyYou 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.The C compiler sends the preprocessedoutput to the file name.pre (where name is the name of the C source file to compile). Eclipse alsocompiles the C source.On the command line, the control program stops after preprocessing. If you also want to compile the Csource you can specify the option --no-preprocessing-only. In this case the control program calls thecompiler twice, once with option --preprocess and once <strong>for</strong> a regular compilation.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.638

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

Saved successfully!

Ooh no, something went wrong!