4.2. Assembly language interworking

In an assembly language source file, you can have several areas (these correspond to ELF sections). Each area can contain ARM instructions, Thumb instructions, or both.

You can use the linker to fix up calls to, and returns from, routines that use a different instruction set from the caller. To do this, use BL to call the routine (see Assembly language interworking using veneers).

If you prefer, you can write your code to make the instruction set changes explicitly. In some circumstances you can write smaller or faster code by doing this.

The following instructions perform the processor state changes:

The following directives instruct the assembler to assemble instructions from the appropriate instruction set (see Changing the assembler mode):

This section includes:

Copyright © 2002-2006 ARM Limited. All rights reserved.ARM DUI 0203G