没有合适的资源?快使用搜索试试~ 我知道了~
首页ARM Compiler 5.06 armasm用户指南
本资源是ARM汇编语言的用户指南文档,专为ARM Compiler 5.06版本设计,由ARM Limited或其关联公司于2010年至2016年期间发布。这份用户手册详细介绍了如何使用ARM汇编器(armasm)进行程序开发,涵盖了从基础语法到高级特性的全方位指导。ARM汇编是一种低级编程语言,它直接操作硬件寄存器,适用于对性能和控制有高要求的应用场景,如嵌入式系统、实时操作系统等。
ARM Compiler 5.06的历史版本更新记录显示了该工具的持续改进和优化。从v4.1到v5.0,再到v5.06,每次迭代都可能引入了新的指令集优化、性能提升、编译器工具改进,以及对新硬件平台的支持。例如,v5.0系列的更新增加了对ARMv8-A架构的支持,这是ARM Cortex-A处理器系列的标准,包括A53和A72等核心。
文档中的"DocumentHistory"部分列出了各个版本的发布日期和保密状态,非机密版本意味着这些内容可以公开获取,便于开发者查阅和学习。对于开发者而言,这份指南不仅提供了编译器的使用教程,还包含了错误处理、调试技巧、代码优化建议等内容,有助于他们更有效地利用ARM汇编语言进行高效且兼容性强的代码编写。
此外,该文档还可能包含编译器的命令行选项、内存管理、数据类型、指令集特性介绍、循环控制结构、异常处理等关键知识点。学习者通过阅读这份用户指南,可以深入理解如何编写出性能优越、可移植的ARM汇编程序,以满足不断变化的嵌入式系统需求。
DUI0473M_armasm_user_guide.pdf是一份重要的参考资料,对于想要掌握ARM汇编语言或者升级到ARM Compiler 5.06版本的程序员来说,它是一把打开嵌入式世界大门的钥匙,帮助他们在实践中提高技能并优化项目性能。
Chapter 13 VFP Instructions
13.1 Summary of VFP instructions .............................................................................. 13-714
13.2 VABS (floating-point) ............................................. ............................................. 13-716
13.3 VADD (floating-point) ............................................. ............................................. 13-717
13.4 VCMP, VCMPE .................................................................................................... 13-718
13.5 VCVT (between single-precision and double-precision) ...................................... 13-719
13.6 VCVT (between floating-point and integer) ............................ ............................ 13-720
13.7 VCVT (between floating-point and fixed-point) .................................................... 13-721
13.8 VCVTB, VCVTT (half-precision extension) .......................................................... 13-722
13.9 VDIV .................................................................................................................... 13-723
13.10 VFMA, VFMS, VFNMA, VFNMS (floating-point) ........................ ........................ 13-724
13.11 VLDM (floating-point) ............................................. ............................................. 13-725
13.12 VLDR (floating-point) ............................................. ............................................. 13-726
13.13 VLDR (post-increment and pre-decrement, floating-point) .................................. 13-727
13.14 VLDR pseudo-instruction .......................................... .......................................... 13-728
13.15 VMLA (floating-point) ............................................. ............................................. 13-729
13.16 VMLS (floating-point) ............................................. ............................................. 13-730
13.17 VMOV (floating-point) .......................................................................................... 13-731
13.18 VMOV (between one ARM register and single precision VFP) ............. ............. 13-732
13.19 VMOV (between two ARM registers and one or two extension registers) ..... ..... 13-733
13.20 VMOV (between an ARM register and half a double precision VFP register) .. .. 13-734
13.21 VMRS .................................................................................................................. 13-735
13.22 VMSR .................................................................................................................. 13-736
13.23 VMUL (floating-point) ............................................. ............................................. 13-737
13.24 VNEG (floating-point) .......................................................................................... 13-738
13.25 VNMLA (floating-point) ........................................................................................ 13-739
13.26 VNMLS (floating-point) ........................................................................................ 13-740
13.27 VNMUL (floating-point) ........................................................................................ 13-741
13.28 VPOP (floating-point) ............................................. ............................................. 13-742
13.29 VPUSH (floating-point) ........................................................................................ 13-743
13.30 VSQRT ................................................................................................................ 13-744
13.31 VSTM (floating-point) ............................................. ............................................. 13-745
13.32 VSTR (floating-point) ............................................. ............................................. 13-746
13.33 VSTR (post-increment and pre-decrement, floating-point) .................................. 13-747
13.34 VSUB (floating-point) ............................................. ............................................. 13-748
Chapter 14 Wireless MMX Technology Instructions
14.1 About Wireless MMX Technology instructions .......................... .......................... 14-750
14.2 WRN and WCN directives to support Wireless MMX Technology ........... ........... 14-751
14.3 Frame directives and Wireless MMX Technology ................................................ 14-752
14.4 Wireless MMX load and store instructions ............................. ............................. 14-753
14.5 Wireless MMX Technology and XScale instructions ............................................ 14-755
14.6 Wireless MMX instructions .................................................................................. 14-756
14.7 Wireless MMX pseudo-instructions .................................. .................................. 14-758
Chapter 15 Directives Reference
15.1 Alphabetical list of directives ....................................... ....................................... 15-761
15.2 About assembly control directives ................................... ................................... 15-762
15.3 About frame directives ............................................ ............................................ 15-763
15.4 ALIAS ......................................................... ......................................................... 15-764
ARM DUI0473M Copyright © 2010-2016 ARM Limited or its affiliates. All rights
reserved.
16
Non-Confidential
15.5 ALIGN .................................................................................................................. 15-765
15.6 AREA ......................................................... ......................................................... 15-767
15.7 ARM or CODE32 ................................................ ................................................ 15-770
15.8 ASSERT .............................................................................................................. 15-771
15.9 ATTR ......................................................... ......................................................... 15-772
15.10 CN ........................................................... ........................................................... 15-773
15.11 CODE16 .............................................................................................................. 15-774
15.12 COMMON ............................................................................................................ 15-775
15.13 CP ........................................................................................................................ 15-776
15.14 DATA .................................................................................................................... 15-777
15.15 DCB .......................................................... .......................................................... 15-778
15.16 DCD and DCDU .................................................................................................. 15-779
15.17 DCDO .................................................................................................................. 15-780
15.18 DCFD and DCFDU .............................................................................................. 15-781
15.19 DCFS and DCFSU .............................................................................................. 15-782
15.20 DCI ...................................................................................................................... 15-783
15.21 DCQ and DCQU .................................................................................................. 15-784
15.22 DCW and DCWU ................................................ ................................................ 15-785
15.23 END .......................................................... .......................................................... 15-786
15.24 ENDFUNC or ENDP ............................................................................................ 15-787
15.25 ENTRY ........................................................ ........................................................ 15-788
15.26 EQU .......................................................... .......................................................... 15-789
15.27 EXPORT or GLOBAL .......................................................................................... 15-790
15.28 EXPORTAS .................................................... .................................................... 15-792
15.29 FIELD .................................................................................................................. 15-793
15.30 FRAME ADDRESS .............................................................................................. 15-794
15.31 FRAME POP ................................................... ................................................... 15-795
15.32 FRAME PUSH .................................................. .................................................. 15-796
15.33 FRAME REGISTER .............................................. .............................................. 15-797
15.34 FRAME RESTORE .............................................................................................. 15-798
15.35 FRAME RETURN ADDRESS .............................................................................. 15-799
15.36 FRAME SAVE ...................................................................................................... 15-800
15.37 FRAME STATE REMEMBER .............................................................................. 15-801
15.38 FRAME STATE RESTORE .................................................................................. 15-802
15.39 FRAME UNWIND ON .......................................................................................... 15-803
15.40 FRAME UNWIND OFF ........................................................................................ 15-804
15.41 FUNCTION or PROC ............................................. ............................................. 15-805
15.42 GBLA, GBLL, and GBLS .......................................... .......................................... 15-806
15.43 GET or INCLUDE ................................................................................................ 15-807
15.44 IF, ELSE, ENDIF, and ELIF .................................................................................. 15-808
15.45 IMPORT and EXTERN ........................................................................................ 15-810
15.46 INCBIN ................................................................................................................ 15-812
15.47 INFO .................................................................................................................... 15-813
15.48 KEEP ......................................................... ......................................................... 15-814
15.49 LCLA, LCLL, and LCLS ........................................... ........................................... 15-815
15.50 LTORG ........................................................ ........................................................ 15-816
15.51 MACRO and MEND .............................................. .............................................. 15-817
15.52 MAP .......................................................... .......................................................... 15-820
15.53 MEXIT .................................................................................................................. 15-821
15.54 NOFP ......................................................... ......................................................... 15-822
ARM DUI0473M Copyright © 2010-2016 ARM Limited or its affiliates. All rights
reserved.
17
Non-Confidential
15.55 OPT .......................................................... .......................................................... 15-823
15.56 QN, DN, and SN .................................................................................................. 15-825
15.57 RELOC ................................................................................................................ 15-827
15.58 REQUIRE ............................................................................................................ 15-828
15.59 REQUIRE8 and PRESERVE8 ...................................... ...................................... 15-829
15.60 RLIST .................................................................................................................. 15-830
15.61 RN ........................................................... ........................................................... 15-831
15.62 ROUT .................................................................................................................. 15-832
15.63 SETA, SETL, and SETS ...................................................................................... 15-833
15.64 SPACE or FILL .................................................................................................... 15-834
15.65 THUMB ................................................................................................................ 15-835
15.66 THUMBX ...................................................... ...................................................... 15-836
15.67 TTL and SUBT .................................................. .................................................. 15-837
15.68 WHILE and WEND .............................................................................................. 15-838
Chapter 16 Via File Syntax
16.1 Overview of via files .............................................. .............................................. 16-840
16.2 Via file syntax rules .............................................................................................. 16-841
Appendix A Assembler Document Revisions
A.1 Revisions for armasm User Guide ............................... ............................... Appx-A-843
ARM DUI0473M Copyright © 2010-2016 ARM Limited or its affiliates. All rights
reserved.
18
Non-Confidential
List of Figures
ARM
®
Compiler armasm User Guide
Figure 2-1 Organization of general-purpose registers and Program Status Registers ........................... 2-43
Figure 8-1 NEON extension register bank ............................................................................................ 8-171
Figure 9-1 VFP extension register bank ............................................................................................... 9-194
Figure 9-2 VFPv2 register banks .......................................................................................................... 9-208
Figure 9-3 VFPv3 register banks .......................................................................................................... 9-208
Figure 11-1 ASR #3 ............................................................................................................................... 11-315
Figure 11-2 LSR #3 ............................................................................................................................... 11-316
Figure 11-3 LSL #3 ................................................................................................................................ 11-316
Figure 11-4 ROR #3 .............................................................................................................................. 11-316
Figure 11-5 RRX ................................................................................................................................... 11-317
Figure 12-1 De-interleaving an array of 3-element structures .............................................................. 12-579
Figure 12-2 Operation of doubleword VEXT for imm = 3 ...................................................................... 12-612
Figure 12-3 Example of operation of VPADAL (in this case for data type S16) ................................... 12-656
Figure 12-4 Example of operation of VPADD (in this case, for data type I16) ...................................... 12-657
Figure 12-5 Example of operation of doubleword VPADDL (in this case, for data type S16) ............... 12-658
Figure 12-6 Operation of quadword VSHL.I64 Qd, Qm, #1 .................................................................. 12-688
Figure 12-7 Operation of quadword VSLI.64 Qd, Qm, #1 ..................................................................... 12-693
Figure 12-8 Operation of doubleword VSRI.64 Dd, Dm, #2 .................................................................. 12-695
Figure 12-9 Operation of doubleword VTRN.8 ..................................................................................... 12-708
Figure 12-10 Operation of doubleword VTRN.32 ................................................................................... 12-708
ARM DUI0473M Copyright © 2010-2016 ARM Limited or its affiliates. All rights
reserved.
19
Non-Confidential
List of Tables
ARM
®
Compiler armasm User Guide
Table 2-1 ARM processor modes .......................................................................................................... 2-38
Table 2-2 Predeclared core registers .................................................................................................... 2-46
Table 2-3 Predeclared extension registers ............................................................................................ 2-47
Table 2-4 Predeclared XScale registers ................................................................................................ 2-48
Table 2-5 Predeclared Wireless MMX registers .................................................................................... 2-48
Table 2-6 Predeclared coprocessor registers ........................................................................................ 2-49
Table 2-7 Instruction groups .................................................................................................................. 2-55
Table 4-1 Stack-oriented suffixes and equivalent addressing mode suffixes ........................................ 4-82
Table 4-2 Suffixes for load and store multiple instructions .................................................................... 4-82
Table 4-3 Changes from earlier ARM assembly language .................................................................... 4-99
Table 4-4 Relaxation of requirements .................................................................................................... 4-99
Table 4-5 Differences between pre-UAL Thumb syntax and UAL syntax ........................................... 4-100
Table 5-1 Condition code suffixes and related flags ............................................................................ 5-106
Table 5-2 Condition codes ................................................................................................................... 5-107
Table 5-3 Conditional branches only .................................................................................................... 5-110
Table 5-4 All instructions conditional .................................................................................................... 5-111
Table 6-1 Built-in variables ................................................................................................................... 6-118
Table 6-2 Built-in Boolean constants ................................................................................................... 6-119
Table 6-3 Predefined macros ............................................................................................................... 6-119
Table 6-4 {TARGET_ARCH_ARM} in relation to {TARGET_ARCH_THUMB} .................................... 6-120
Table 6-5 Command-line options ......................................................................................................... 6-132
Table 6-6 armcc equivalent command-line options ............................................................................. 6-132
Table 7-1 Unary operators that return strings ...................................................................................... 7-156
ARM DUI0473M Copyright © 2010-2016 ARM Limited or its affiliates. All rights
reserved.
20
Non-Confidential
剩余851页未读,继续阅读
2019-12-07 上传
2023-07-20 上传
2023-07-15 上传
2024-09-08 上传
2023-05-21 上传
2023-05-31 上传
2023-05-31 上传
icarlyle
- 粉丝: 3
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功