4.14 Instruction set directives

Instruction set directives instruct the assembler to interpret subsequent instructions as either A32 or T32 instructions.

The following table shows how to translate ARM® syntax instruction set directives to GNU syntax directives:

Table 4-4 Instruction set directives translation

ARM syntax directive GNU syntax directive Description
ARM or CODE32 .arm or .code 32 Interpret subsequent instructions as A32 instructions.
THUMB or CODE16 .thumb or .code 16 Interpret subsequent instructions as T32 instructions.
Related information
GNU Binutils - Using as: ARM Machine Directives
armasm User Guide: ARM or CODE32 directive
armasm User Guide: CODE16 directive
armasm User Guide: THUMB directive
Non-ConfidentialPDF file icon PDF versionARM DUI0742F
Copyright © 2014-2016 ARM. All rights reserved.