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>4. Select the sub-entries and set the options in the various pages.Note that the C/C++ compiler options are used to create an object file from a C or C++ file. Theoptions you enter in the Assembler page are not only used <strong>for</strong> hand-coded assembly files, butalso <strong>for</strong> intermediate assembly files.You can find a detailed description of all C compiler options in Section 13.2, C Compiler Options.Invocation syntax on the command line (Windows Command Prompt):carm [ [option]... [file]... ]...4.3. How the Compiler Searches Include FilesWhen you use include files (with the #include statement), you can specify their location in several ways.The compiler searches the specified locations in the following order:1. If the #include statement contains an absolute pathname, the compiler looks <strong>for</strong> this file. If no pathor a relative path is specified, the compiler looks in the same directory as the source file. This is onlypossible <strong>for</strong> include files that are enclosed in "".This first step is not done <strong>for</strong> include files enclosed in .2. When the compiler did not find the include file, it looks in the directories that are specified in the C/C++Compiler » Include Paths page in the C/C++ Build » Settings » Tool Settings tab of the ProjectProperties dialog (equivalent to the -I command line option). If the option Add CMSIS include pathsis enabled, this path is search first.3. When the compiler did not find the include file (because it is not in the specified include directory orbecause no directory is specified), it looks in the path(s) specified in the environment variable C<strong>ARM</strong>INC.4. When the compiler still did not find the include file, it finally tries the default include directory relativeto the installation directory (unless you specified option --no-stdinc).ExampleSuppose that the C source file test.c contains the following lines:#include #include "myinc.h"You can call the compiler as follows:carm -Imyinclude test.c148

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

Saved successfully!

Ooh no, something went wrong!