汇编指令详解--as手册
https://sourceware.org/binutils/docs/as/
Table of Contents
- 1 Overview
- 2 Command-Line Options
- 2.1 Enable Listings: -a[cdghlns]
- 2.2 --alternate
- 2.3 -D
- 2.4 Work Faster: -f
- 2.5
.includeSearch Path: -I path - 2.6 Difference Tables: -K
- 2.7 Include Local Symbols: -L
- 2.8 Configuring listing output: --listing
- 2.9 Assemble in MRI Compatibility Mode: -M
- 2.10 Dependency Tracking: --MD
- 2.11 Output Section Padding
- 2.12 Name the Object File: -o
- 2.13 Join Data and Text Sections: -R
- 2.14 Display Assembly Statistics: --statistics
- 2.15 Compatible Output: --traditional-format
- 2.16 Announce Version: -v
- 2.17 Control Warnings: -W, --warn, --no-warn, --fatal-warnings
- 2.18 Generate Object File in Spite of Errors: -Z
- 3 Syntax
- 4 Sections and Relocation
- 5 Symbols
- 6 Expressions
- 7 Assembler Directives
- 7.1
.abort - 7.2
.ABORT(COFF) - 7.3
.align abs-expr, abs-expr, abs-expr - 7.4
.altmacro - 7.5
.ascii "string"… - 7.6
.asciz "string"… - 7.7
.balign[wl] abs-expr, abs-expr, abs-expr - 7.8 Bundle directives
- 7.9
.byte expressions - 7.10 CFI directives
- 7.10.1
.cfi_sections section_list - 7.10.2
.cfi_startproc [simple] - 7.10.3
.cfi_endproc - 7.10.4
.cfi_personality encoding [, exp] - 7.10.5
.cfi_personality_id id - 7.10.6
.cfi_fde_data [opcode1 [, …]] - 7.10.7
.cfi_lsda encoding [, exp] - 7.10.8
.cfi_inline_lsda[align] - 7.10.9
.cfi_def_cfa register, offset - 7.10.10
.cfi_def_cfa_register register - 7.10.11
.cfi_def_cfa_offset offset - 7.10.12
.cfi_adjust_cfa_offset offset - 7.10.13
.cfi_offset register, offset - 7.10.14
.cfi_val_offset register, offset - 7.10.15
.cfi_rel_offset register, offset - 7.10.16
.cfi_register register1, register2 - 7.10.17
.cfi_restore register - 7.10.18
.cfi_undefined register - 7.10.19
.cfi_same_value register - 7.10.20
.cfi_remember_stateand.cfi_restore_state - 7.10.21
.cfi_return_column register - 7.10.22
.cfi_signal_frame - 7.10.23
.cfi_window_save - 7.10.24
.cfi_escapeexpression[, …] - 7.10.25
.cfi_val_encoded_addr register, encoding, label
- 7.10.1
- 7.11
.comm symbol , length - 7.12
.data subsection - 7.13
.def name - 7.14
.desc symbol, abs-expression - 7.15
.dim - 7.16
.double flonums - 7.17
.eject - 7.18
.else - 7.19
.elseif - 7.20
.end - 7.21
.endef - 7.22
.endfunc - 7.23
.endif - 7.24
.equ symbol, expression - 7.25
.equiv symbol, expression - 7.26
.eqv symbol, expression - 7.27
.err - 7.28
.error "string" - 7.29
.exitm - 7.30
.extern - 7.31
.fail expression - 7.32
.file - 7.33
.fill repeat , size , value - 7.34
.float flonums - 7.35
.func name[,label] - 7.36
.global symbol,.globl symbol - 7.37
.gnu_attribute tag,value - 7.38
.hidden names - 7.39
.hword expressions - 7.40
.ident - 7.41
.if absolute expression - 7.42
.incbin "file"[,skip[,count]] - 7.43
.include "file" - 7.44
.int expressions - 7.45
.internal names - 7.46
.irp symbol,values… - 7.47
.irpc symbol,values… - 7.48
.lcomm symbol , length - 7.49
.lflags - 7.50
.line line-number - 7.51
.linkonce [type] - 7.52
.list - 7.53
.ln line-number - 7.54
.loc fileno lineno [column] [options] - 7.55
.loc_mark_labels enable - 7.56
.local names - 7.57
.long expressions - 7.58
.macro - 7.59
.mri val - 7.60
.noaltmacro - 7.61
.nolist - 7.62
.octa bignums - 7.63
.offset loc - 7.64
.org new-lc , fill - 7.65
.p2align[wl] abs-expr, abs-expr, abs-expr - 7.66
.popsection - 7.67
.previous - 7.68
.print string - 7.69
.protected names - 7.70
.psize lines , columns - 7.71
.purgem name - 7.72
.pushsection name [, subsection] [, "flags"[, @type[,arguments]]] - 7.73
.quad bignums - 7.74
.reloc offset, reloc_name[, expression] - 7.75
.rept count - 7.76
.sbttl "subheading" - 7.77
.scl class - 7.78
.section name - 7.79
.set symbol, expression - 7.80
.short expressions - 7.81
.single flonums - 7.82
.size - 7.83
.skip size , fill - 7.84
.sleb128 expressions - 7.85
.space size , fill - 7.86
.stabd, .stabn, .stabs - 7.87
.string"str",.string8"str",.string16 - 7.88
.struct expression - 7.89
.subsection name - 7.90
.symver - 7.91
.tag structname - 7.92
.text subsection - 7.93
.title "heading" - 7.94
.type - 7.95
.uleb128 expressions - 7.96
.val addr - 7.97
.version "string" - 7.98
.vtable_entry table, offset - 7.99
.vtable_inherit child, parent - 7.100
.warning "string" - 7.101
.weak names - 7.102
.weakref alias, target - 7.103
.word expressions - 7.104
.zero size - 7.105
.2byte expression [, expression]* - 7.106
.4byte expression [, expression]* - 7.107
.8byte expression [, expression]* - 7.108 Deprecated Directives
- 7.1
- 8 Object Attributes
- 9 Machine Dependent Features
- 9.1 AArch64 Dependent Features
- 9.2 Alpha Dependent Features
- 9.3 ARC Dependent Features
- 9.4 ARM Dependent Features
- 9.5 AVR Dependent Features
- 9.6 Blackfin Dependent Features
- 9.7 CR16 Dependent Features
- 9.8 CRIS Dependent Features
- 9.9 D10V Dependent Features
- 9.10 D30V Dependent Features
- 9.11 Epiphany Dependent Features
- 9.12 H8/300 Dependent Features
- 9.13 HPPA Dependent Features
- 9.14 ESA/390 Dependent Features
- 9.15 80386 Dependent Features
- 9.15.1 Options
- 9.15.2 x86 specific Directives
- 9.15.3 i386 Syntactical Considerations
- 9.15.4 i386-Mnemonics
- 9.15.5 Register Naming
- 9.15.6 Instruction Prefixes
- 9.15.7 Memory References
- 9.15.8 Handling of Jump Instructions
- 9.15.9 Floating Point
- 9.15.10 Intel’s MMX and AMD’s 3DNow! SIMD Operations
- 9.15.11 AMD’s Lightweight Profiling Instructions
- 9.15.12 Bit Manipulation Instructions
- 9.15.13 AMD’s Trailing Bit Manipulation Instructions
- 9.15.14 Writing 16-bit Code
- 9.15.15 Specifying CPU Architecture
- 9.15.16 AT&T Syntax bugs
- 9.15.17 Notes
- 9.16 Intel i860 Dependent Features
- 9.17 Intel 80960 Dependent Features
- 9.18 IA-64 Dependent Features
- 9.19 IP2K Dependent Features
- 9.20 LM32 Dependent Features
- 9.21 M32C Dependent Features
- 9.22 M32R Dependent Features
- 9.23 M680x0 Dependent Features
- 9.24 M68HC11 and M68HC12 Dependent Features
- 9.25 Meta Dependent Features
- 9.26 MicroBlaze Dependent Features
- 9.27 MIPS Dependent Features
- 9.27.1 Assembler options
- 9.27.2 High-level assembly macros
- 9.27.3 Directives to override the size of symbols
- 9.27.4 Controlling the use of small data accesses
- 9.27.5 Directives to override the ISA level
- 9.27.6 Directives to control code generation
- 9.27.7 Directives for extending MIPS 16 bit instructions
- 9.27.8 Directive to mark data as an instruction
- 9.27.9 Directives to control the FP ABI
- 9.27.10 Directives to record which NaN encoding is being used
- 9.27.11 Directives to save and restore options
- 9.27.12 Directives to control generation of MIPS ASE instructions
- 9.27.13 Directives to override floating-point options
- 9.27.14 Syntactical considerations for the MIPS assembler
- 9.28 MMIX Dependent Features
- 9.29 MSP 430 Dependent Features
- 9.30 NDS32 Dependent Features
- 9.31 Nios II Dependent Features
- 9.32 NS32K Dependent Features
- 9.33 PDP-11 Dependent Features
- 9.34 picoJava Dependent Features
- 9.35 PowerPC Dependent Features
- 9.36 PRU Dependent Features
- 9.37 RL78 Dependent Features
- 9.38 RISC-V Dependent Features
- 9.39 RX Dependent Features
- 9.40 IBM S/390 Dependent Features
- 9.41 SCORE Dependent Features
- 9.42 Renesas / SuperH SH Dependent Features
- 9.43 SuperH SH64 Dependent Features
- 9.44 SPARC Dependent Features
- 9.45 TIC54X Dependent Features
- 9.46 TIC6X Dependent Features
- 9.47 TILE-Gx Dependent Features
- 9.48 TILEPro Dependent Features
- 9.49 v850 Dependent Features
- 9.50 VAX Dependent Features
- 9.51 Visium Dependent Features
- 9.52 WebAssembly Dependent Features
- 9.53 XGATE Dependent Features
- 9.54 XStormy16 Dependent Features
- 9.55 Xtensa Dependent Features
- 9.56 Z80 Dependent Features
- 9.57 Z8000 Dependent Features
- 10 Reporting Bugs
- 11 Acknowledgements
- Appendix A GNU Free Documentation License
- AS Index
人就像是被蒙着眼推磨的驴子,生活就像一条鞭子;当鞭子抽到你背上时,你就只能一直往前走,虽然连你也不知道要走到什么时候为止,便一直这么坚持着。
浙公网安备 33010602011771号