Download TASKING VX-toolset for RH850 User Guide

Transcript
TASKING VX-toolset for RH850 User Guide
You can call the assembler as follows:
as850 -Imyinclude test.asm
First the assembler looks for the file myinc.asm, in the directory where test.asm is located. If the file
is not there the assembler searches in the directory myinclude. If it was still not found, the assembler
searches in the environment variable AS850INC and then in the default include directory.
4.4. Assembler Optimizations
The assembler can perform various optimizations that you can enable or disable.
1.
From the Project menu, select Properties for
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 » Optimization.
4.
Enable one or more optimizations.
You can enable or disable the optimizations described below. The command line option for each
optimization is given in brackets.
Allow generic instructions (option -Og/-OG)
When this option is enabled, you can use generic instructions in your assembly source. The assembler
tries to replace instructions by faster or smaller instructions.
By default this option is enabled. Because shorter instructions may influence the number of cycles, you
may want to disable this option when you have written timed code. In that case the assembler encodes
all instructions as they are.
Optimize jump chains (option -Oj/-OJ)
When this option is enabled, the assembler replaces chained jumps by a single jump instruction. For
example, a jump from a to b immediately followed by a jump from b to c, is replaced by a jump from a to
c. Note that this optimization has no effect on compiled C files, because jump chains are already optimized
by the compiler. By default this option is disabled.
Optimize instruction size (option -Os/-OS)
When this option is enabled, the assembler tries to find the shortest possible operand encoding for
instructions. By default this option is enabled.
130