arm-linux-as 语法

Table of Contents

1. Overview

1.1 Structure of this Manual
1.2 The GNU Assembler
1.3 Object File Formats
1.4 Command Line
1.5 Input Files
1.6 Output (Object) File
1.7 Error and Warning Messages

2. Command-Line Options

2.1 Enable Listings:`-a[cdhlns]'
2.2`-D'
2.3 Work Faster:`-f'
2.4 .include search path:`-I' path
2.5 Difference Tables:`-K'
2.6 Include Local Labels:`-L'
2.7 Configuring listing output:`--listing'
2.8 Assemble in MRI Compatibility Mode:`-M'
2.9 Dependency tracking:`--MD'
2.10 Name the Object File:`-o'
2.11 Join Data and Text Sections:`-R'
2.12 Display Assembly Statistics:`--statistics'
2.13 Compatible output:`--traditional-format'
2.14 Announce Version:`-v'
2.15 Control Warnings:`-W',`--warn',`--no-warn',`--fatal-warnings'
2.16 Generate Object File in Spite of Errors:`-Z'

3. Syntax

3.1 Preprocessing
3.2 Whitespace
3.3 Comments
3.4 Symbols
3.5 Statements
3.6 Constants

4. Sections and Relocation

4.1 Background
4.2 Linker Sections
4.3 Assembler Internal Sections
4.4 Sub-Sections
4.5 bss Section

5. Symbols

5.1 Labels
5.2 Giving Symbols Other Values
5.3 Symbol Names
5.4 The Special Dot Symbol
5.5 Symbol Attributes

6. Expressions

6.1 Empty Expressions
6.2 Integer Expressions

7. Assembler Directives

7.1 .abort
7.2 .ABORT
7.3 .align abs-expr, abs-expr, abs-expr
7.4 .ascii "string"...
7.5 .asciz "string"...
7.6 .balign[wl] abs-expr, abs-expr, abs-expr
7.7 .byte expressions
7.8 .comm symbol , length
7.9 .data subsection
7.10 .def name
7.11 .desc symbol, abs-expression
7.12 .dim
7.13 .double flonums
7.14 .eject
7.15 .else
7.16 .elseif
7.17 .end
7.18 .endef
7.19 .endfunc
7.20 .endif
7.21 .equ symbol, expression
7.22 .equiv symbol, expression
7.23 .err
7.24 .exitm
7.25 .extern
7.26 .fail expression
7.27 .file string
7.28 .fill repeat , size , value
7.29 .float flonums
7.30 .func name[,label]
7.31 .global symbol, .globl symbol
7.32 .hidden names
7.33 .hword expressions
7.34 .ident
7.35 .if absolute expression
7.36 .incbin "file"[,skip[,count]]
7.37 .include "file"
7.38 .int expressions
7.39 .internal names
7.40 .irp symbol,values...
7.41 .irpc symbol,values...
7.42 .lcomm symbol , length
7.43 .lflags
7.44 .line line-number
7.45 .linkonce [type]
7.46 .ln line-number
7.47 .mri val
7.48 .list
7.49 .long expressions
7.50 .macro
7.51 .nolist
7.52 .octa bignums
7.53 .org new-lc , fill
7.54 .p2align[wl] abs-expr, abs-expr, abs-expr
7.55 .previous
7.56 .popsection
7.57 .print string
7.58 .protected names
7.59 .psize lines , columns
7.60 .purgem name
7.61 .pushsection name , subsection
7.62 .quad bignums
7.63 .rept count
7.64 .sbttl "subheading"
7.65 .scl class
7.66 .section name (COFF version)
7.67 .section name (ELF version)
7.68 .set symbol, expression
7.69 .short expressions
7.70 .single flonums
7.71 .size (COFF version)
7.72 .size name , expression (ELF version)
7.73 .sleb128 expressions
7.74 .skip size , fill
7.75 .space size , fill
7.76 .stabd, .stabn, .stabs
7.77 .string "str"
7.78 .struct expression
7.79 .subsection name
7.80 .symver
7.81 .tag structname
7.82 .text subsection
7.83 .title "heading"
7.84 .type int (COFF version)
7.85 .type name , type description (ELF version)
7.86 .uleb128 expressions
7.87 .val addr
7.88 .version "string"
7.89 .vtable_entry table, offset
7.90 .vtable_inherit child, parent
7.91 .weak names
7.92 .word expressions
7.93 Deprecated Directives

8. Machine Dependent Features

8.1 AMD 29K Dependent Features
8.2 Alpha Dependent Features
8.3 ARC Dependent Features
8.4 ARM Dependent Features
8.5 CRIS Dependent Features
8.6 D10V Dependent Features
8.7 D30V Dependent Features
8.8 H8/300 Dependent Features
8.9 H8/500 Dependent Features
8.10 HPPA Dependent Features
8.11 ESA/390 Dependent Features
8.12 80386 Dependent Features
8.13 Intel i860 Dependent Features
8.14 Intel 80960 Dependent Features
8.15 M32R Dependent Features
8.16 M680x0 Dependent Features
8.17 M68HC11 and M68HC12 Dependent Features
8.18 Motorola M88K Dependent Features
8.19 MIPS Dependent Features
8.20 MMIX Dependent Features
8.21 PDP-11 Dependent Features
8.22 picoJava Dependent Features
8.23 PowerPC Dependent Features
8.24 Hitachi SH Dependent Features
8.25 Hitachi SH64 Dependent Features
8.26 SPARC Dependent Features
8.27 Z8000 Dependent Features
8.28 VAX Dependent Features
8.29 v850 Dependent Features

9. Reporting Bugs

9.1 Have you found a bug?
9.2 How to report bugs

10. Acknowledgements
11. GNU Free Documentation License
Index

posted @ 2013-04-23 14:34  moon_cat  Views(390)  Comments(0)    收藏  举报