ARM GNU assembler directives commonly introduced

  1. abort

.abort: Stop compilation

.align absexpr1, absexpr2:. in some alignment, the value of the storage area filling the unused first value represents the alignment, 4, 8, 16 or 32. A second expression value indicates filled.

  1. if...else...endif

.if

.else

.endif: support for precompiled conditions

  1. include

.include "file": contains the specified header files, you can put a compilation constants defined in header files.

  1. comm

.comm symbol, length: Application in the bss section segment of the namespace, the segment name space is called Symbol, length Ld of the length of the connector will be connected.

Make room for it.

  1. data

.data subsection: Description The following definitions assigned to the data segment subsection.

  1. equ

.equ symbol, expression: the one symbol (symbol) is defined as a certain value (expression) of the instruction is not allocated space.

  1. global

.global symbol: Define a global symbol is usually used for the ld.

  1. ascii

.ascii "string": string and Assigning a defined space.

  1. byte

.byte expressions: the definition of a byte, and it has been assigned space.

  1. short

.short expressions: the definition of a short integer, and it has been assigned space.

  1. int

.int expressions: define an integer, and Assigning space 12 long.

.long expressions: the definition of a long integer, and it has been assigned space.

13 word

.word expressions: the definition of a word, and Assigning space, 4bytes.

  1. macro/endm

.macro: the definition section of the macro code, .macro indicates the start code, .endm indicates the end of the code.

  1. req

name .req register name: to define an alias register.

  1. code

.code [16 | 32]: Specifies the length of the instruction code generated Thumb instruction 16 indicates, 32 denotes ARM instructions.

  1. ltorg

.ltorg: it means that the definition in the current down attributed to the current segment, and it has been assigned space.

Guess you like

Origin www.cnblogs.com/niezhongle/p/11088658.html