Next: Object Attributes, Previous: Expressions, Up: Top
All assembler directives have names that begin with a period (‘.’). The names are case insensitive for most targets, and usually written in lower case.
This chapter discusses directives that are available regardless of the target machine configuration for the gnu assembler. Some machine configurations provide additional directives. See Machine Dependencies.
.abort
.ABORT
.align
abs-expr ,
abs-expr
.altmacro
.ascii "
string"
...
.asciz "
string"
...
.balign
abs-expr ,
abs-expr
.bundle_align_mode
abs-expr, etc
.byte
expressions
.cfi_startproc [simple]
, .cfi_endproc
, etc.
.comm
symbol ,
length
.data
subsection
.def
name
.desc
symbol,
abs-expression
.dim
.double
flonums
.eject
.else
.elseif
.end
.endef
.endfunc
.endif
.equ
symbol,
expression
.equiv
symbol,
expression
.eqv
symbol,
expression
.err
.error
string
.exitm
.extern
.fail
.file
.fill
repeat ,
size ,
value
.float
flonums
.func
.global
symbol, .globl
symbol
.gnu_attribute
tag,
value
.hidden
names
.hword
expressions
.ident
.if
absolute expression
.incbin "
file"[,
skip[,
count]]
.include "
file"
.int
expressions
.internal
names
.irp
symbol,
values...
.irpc
symbol,
values...
.lcomm
symbol ,
length
.lflags
.line
line-number
.linkonce [
type]
.list
.ln
line-number
.loc
fileno lineno
.loc_mark_labels
enable
.local
names
.long
expressions
.macro
name args...
.mri
val
.noaltmacro
.nolist
.octa
bignums
.offset
loc
.org
new-lc,
fill
.p2align
abs-expr,
abs-expr,
abs-expr
.popsection
.previous
.print
string
.protected
names
.psize
lines,
columns
.purgem
name
.pushsection
name
.quad
bignums
.reloc
offset,
reloc_name[,
expression]
.rept
count
.sbttl "
subheading"
.scl
class
.section
name[,
flags]
.set
symbol,
expression
.short
expressions
.single
flonums
.size [
name ,
expression]
.skip
size ,
fill
.sleb128
expressions
.space
size ,
fill
.stabd, .stabn, .stabs
.string "
str"
, .string8 "
str"
, .string16 "
str"
, .string32 "
str"
, .string64 "
str"
.struct
expression
.subsection
.symver
name,
name2@nodename
.tag
structname
.text
subsection
.title "
heading"
.type <
int |
name ,
type description>
.uleb128
expressions
.val
addr
.version "
string"
.vtable_entry
table,
offset
.vtable_inherit
child,
parent
.warning
string
.weak
names
.weakref
alias,
symbol
.word
expressions
.zero
size