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>1. If the .INCLUDE directive contains an absolute path name, the assembler looks <strong>for</strong> this file. If no pathor a relative path is specified, the assembler looks in the same directory as the source file.2. When the assembler did not find the include file, it looks in the directories that are specified in theAssembler » Include Paths page in the C/C++ Build » Settings » Tool Settings tab of the ProjectProperties dialog (equivalent to the -I command line option).3. When the assembler 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 AS<strong>ARM</strong>INC.4. When the assembler still did not find the include file, it finally tries the default include directory relativeto the installation directory.ExampleSuppose that the assembly source file test.asm contains the following lines:.INCLUDE 'myinc.inc'You can call the assembler as follows:asarm -Imyinclude test.asmFirst the assembler looks <strong>for</strong> the file myinc.asm, in the directory where test.asm is located. If the fileis not there the assembler searches in the directory myinclude. If it was still not found, the assemblersearches in the environment variable AS<strong>ARM</strong>INC and then in the default include directory.7.5. Generating a List FileThe list file is an additional output file that contains in<strong>for</strong>mation about the generated code. You cancustomize the amount and <strong>for</strong>m of in<strong>for</strong>mation.If the assembler generates errors or warnings, these are reported in the list file just below the source linethat caused the error or warning.To generate a list file1. From the Project menu, select Properties <strong>for</strong>The Properties dialog appears.2. In the left pane, expand C/C++ Build and select Settings.In the right pane the Settings appear.3. On the Tool Settings tab, select Assembler » List File.4. Enable the option Generate list file.5. (Optional) Enable the options to include that in<strong>for</strong>mation in the list file.192

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

Saved successfully!

Ooh no, something went wrong!