ARM Compiler toolchain Compiler -- Supported ARM architectures
--cpu=name
This option enables code generation for the selected ARM processor or architecture.
Syntax
--cpu=name
Where:
name-
is the name of a processor or architecture.
If
is the name of a processor, enter it as shown on ARM data sheets, for example,nameARM7TDMI,ARM1176JZ-S,MPCore.If
is the name of an architecture, it must belong to the list of architectures shown in Table 3.nameProcessor and architecture names are not case-sensitive.
Wildcard characters are not accepted.
-
Supported ARM architectures
Architecture Name Description Example processors 4ARMv4 without Thumb SA-1100 4TARMv4 with Thumb ARM7TDMI, ARM9TDMI, ARM720T, ARM740T, ARM920T, ARM922T, ARM940T, SC100 5TARMv5 with Thumb and interworking 5TEARMv5 with Thumb, interworking, DSP multiply, and double-word instructions ARM9E, ARM946E-S, ARM966E-S 5TEJARMv5 with Thumb, interworking, DSP multiply, double-word instructions, and Jazelle®extensions[a] ARM926EJ-S, ARM1026EJ-S, SC200 6ARMv6 with Thumb, interworking, DSP multiply, double-word instructions, unaligned and mixed-endian support, Jazelle, and media extensions ARM1136J-S, ARM1136JF-S 6-MARMv6 micro-controller profile with Thumb only plus processor state instructions Cortex-M1 without OS extensions, Cortex-M0, SC000 6S-MARMv6 micro-controller profile with Thumb only, plus processor state instructions and OS extensions Cortex-M1 with OS extensions 6KARMv6 with SMP extensions MPCore 6T2ARMv6 with Thumb-2 ARM1156T2-S, ARM1156T2F-S 6ZARMv6 with Security Extensions ARM1176JZF-S, ARM1176JZ-S 7ARMv7 with Thumb-2 only and without hardware divide Cortex-A5 7-AARMv7 application profile supporting virtual MMU-based memory systems, with ARM, Thumb-2, and Thumb-2EE instruction sets, DSP support, and 32-bit SIMD support Cortex-A8, Cortex-A9 7-A.securityEnables the use of the SMCinstruction (formerlySMI) when assembling for the v7-A architectureCortex-A5, Cortex-A8, Cortex-A9 7-RARMv7 real-time profile with ARM, Thumb-2, DSP support, and 32-bit SIMD support Cortex-R4, Cortex-R4F 7-MARMv7 micro-controller profile with Thumb-2 only and hardware divide Cortex-M3, SC300 7E-MARMv7-M enhanced with DSP (saturating and 32-bit SIMD) instructions Cortex-M4 [a] The ARM compiler cannot generate Java bytecodes.
Note
ARMv7 is not an actual ARM architecture.
--cpu=7 denotes the features that are common to all of the ARMv7-A, ARMv7-R, and ARMv7-M architectures.
By definition, any given feature used with --cpu=7 exists on all of the ARMv7-A, ARMv7-R, and ARMv7-M architectures.
7-A.security is not an actual ARM architecture, but rather, refers to 7-Aplus Security Extensions.
Default
If you do not specify a --cpu option, the compiler assumes --cpu=ARM7TDMI.
To obtain a full list of CPU architectures and processors, use the --cpu=list option.
--cpu=ARM7EJ-S
--cpu=ARM7TM
--cpu=ARM7TDM
--cpu=ARM7TDMI
--cpu=ARM710T
--cpu=ARM720T
--cpu=ARM740T
--cpu=ARM7TM-S
--cpu=ARM7TDMI-S
--cpu=ARM9TDMI
--cpu=ARM920T
--cpu=ARM922T
--cpu=ARM940T
--cpu=ARM9E-S
--cpu=ARM9EJ-S
--cpu=ARM926EJ-S
--cpu=ARM946E-S
--cpu=ARM966E-S
--cpu=ARM968E-S
--cpu=Cortex-M0
--cpu=Cortex-M0plus
--cpu=SC000
--cpu=Cortex-M1
--cpu=Cortex-M1.os_extension
--cpu=Cortex-M1.no_os_extension
--cpu=Cortex-M3
--cpu=Cortex-M3-rev0
--cpu=SC300
--cpu=Cortex-M4
--cpu=Cortex-M4.fp
--cpu=Cortex-R4
--cpu=Cortex-R4F
Usage
The following general points apply to processor and architecture options:
- Processors
-
Selecting the processor selects the appropriate architecture,Floating-Point Unit (FPU), and memory organization.
The supported
--cpuvalues include all current ARM product names or architecture versions.Other ARM architecture-based processors, such as the Marvell Feroceon and the Marvell XScale, are also supported.
If you specify a processor for the
--cpuoption, the compiled code is optimized for that processor.
This enables the compiler to use specific coprocessors or instruction scheduling for optimum performance.
- Architectures
-
If you specify an architecture name for the
--cpuoption, the code is compiled to run on any processor supporting that architecture.
For example,--cpu=5TEproduces code that can be used by theARM926EJ-S®.
- FPU
-
Some specifications of
--cpuimply an--fpuselection.
For example, when compiling with the--armoption,--cpu=ARM1136JF-Simplies--fpu=vfpv2.
Similarly,--cpu=Cortex-R4Fimplies--fpu=vfpv3_d16.Note
Any explicit FPU, set with
--fpuon the command line, overrides an implicit FPU.If no
--fpuoption is specified and no--cpuoption is specified,--fpu=softvfpis used.
- ARM/Thumb
-
Specifying a processor or architecture that supports Thumb instructions,
such as--cpu=ARM7TDMI, does not make the compiler generate Thumb code.
It only enables features of the processor to be used, such as long multiply.
Use the--thumboption to generate Thumb code, unless the processor is a Thumb-only processor, for example Cortex-M4.
In this case,--thumbis not required.Note
Specifying the target processor or architecture might make the object code generated
by the compiler incompatible with other ARM processors.
For example, code compiled for architecture ARMv6 might not run on an ARM920T processor,
if the compiled code includes instructions specific to ARMv6.
Therefore, you must choose the lowest common denominator processor suited to your purpose.If you are compiling code that is intended for mixed ARM/Thumb systems for processors that support ARMv4T or ARMv5T,
then you must specify the interworking option--apcs=/interwork.
By default, this is enabled for processors that support ARMv5T or above.If you compile for Thumb, that is with the
--thumboption on the command line,
the compiler compiles as much of the code as possible using the Thumb instruction set.
However, the compiler might generate ARM code for some parts of the compilation.
For example, if you are compiling code for a Thumb-1 processor and using VFP,
any function containing floating-point operations is compiled for ARM.If the architecture you are compiling code for only supports Thumb, there is no need to specify
--thumbon the command line.
For example, if compiling code for ARMv7-M with--cpu=7-M, you do not have to specify--thumbon the command line,
because ARMv7-M only supports Thumb-2.
Similarly, ARMv6-M and other Thumb-only architectures.
Restrictions
You cannot specify both a processor and an architecture on the same command-line.
--fpu=name
nameThis option enables you to specify the target FPU architecture.
If you specify this option, it overrides any implicit FPU option that appears on the command line, for example, where you use the --cpu option.
To obtain a full list of FPU architectures use the --fpu=list option.
Syntax
--fpu=name
--fpu=VFPv3_D16
--fpu=VFPv2
--fpu=FPv4-SP
--fpu=SoftVFP
--fpu=SoftVFP+VFPv2
--fpu=SoftVFP+VFPv3_D16
--fpu=SoftVFP+FPv4-SP
--fpu=None
Where name is one of:
none-
Selects no floating-point option. No floating-point code is to be used. This produces an error if your code contains float types.
vfpv-
This is a synonym for
vfpv2. vfpv2-
Selects a hardware vector floating-point unit conforming to architecture VFPv2.
Note
If you enter
armcc --thumb --fpu=vfpv2on the command line,
the compiler compiles as much of the code using the Thumb instruction set as possible,
but hard floating-point sensitive functions are compiled to ARM code.
In this case, the value of the predefine__thumbis not correct. vfpv3-
Selects a hardware vector floating-point unit conforming to architecture VFPv3.
VFPv3 is backwards compatible with VFPv2 except that VFPv3 cannot trap floating-point exceptions. vfpv3_fp16-
Selects a hardware vector floating-point unit conforming to architecture VFPv3
that also provides the half-precision extensions. vfpv3_d16-
Selects a hardware vector floating-point unit conforming to VFPv3-D16 architecture.
vfpv3_d16_fp16-
Selects a hardware vector floating-point unit conforming to VFPv3-D16 architecture,
that also provides the half-precision extensions. vfpv4-
Selects a hardware floating-point unit conforming to FPv4 architecture.
vfpv4_d16-
Selects a hardware floating-point unit conforming to the VFPv4-D16 architecture.
fpv4-sp-
Selects a hardware floating-point unit conforming to the single precision variant of the FPv4 architecture.
softvfp-
Selects software floating-point support where floating-point operations are performed by a floating-point library,
fplib.
This is the default if you do not specify a--fpuoption, or if you select a CPU that does not have an FPU. softvfp+vfpv2-
Selects a hardware vector floating-point unit conforming to VFPv2, with software floating-point linkage.
Select this option if you are interworking Thumb code with ARM code on a system that implements a VFP unit.If you select this option:
Compiling with
--thumbbehaves in a similar way to--fpu=softvfpexcept that it links with floating-point libraries that use VFP instructions.Compiling with
--armbehaves in a similar way to--fpu=vfpv2except that all functions are given software floating-point linkage.
This means that functions pass and return floating-point arguments and
results in the same way as--fpu=softvfp, but use VFP instructions internally.
Note
If you specify
softvfp+vfpv2with the--armor--thumboption for C code,
it ensures that your interworking floating-point code is compiled to use software floating-point linkage. softvfp+vfpv3-
Selects a hardware vector floating-point unit conforming to VFPv3, with software floating-point linkage.
Select this option if you are interworking Thumb code with ARM code on a system that implements a VFPv3 unit. softvfp+vfpv3_fp16-
Selects a hardware vector floating-point unit conforming to VFPv3-fp16, with software floating-point linkage.
softvfp+vfpv3_d16-
Selects a hardware vector floating-point unit conforming to VFPv3-D16, with software floating-point linkage.
softvfp+vfpv3_d16_fp16-
Selects a hardware vector floating-point unit conforming to
vfpv3_d16_fp16, with software floating-point linkage. softvfp+vfpv4-
Selects a hardware floating-point unit conforming to FPv4, with software floating-point linkage.
softvfp+vfpv4_d16-
Selects a hardware floating-point unit conforming to VFPv4-D16, with software floating-point linkage.
softvfp+fpv4-sp-
Selects a hardware floating-point unit conforming to FPv4-SP, with software floating-point linkage.
Usage
Any FPU explicitly selected using the --fpu option always overrides any FPU implicitly selected using the --cpu option.
For example, the option --cpu=ARM1136JF-S --fpu=softvfp generates code that uses the software floating-point library fplib,
even though the choice of CPU implies the use of architecture VFPv2.
To control floating-point linkage without affecting the choice of FPU, you can use --apcs=/softfp or --apcs=/hardfp.
Restrictions
The compiler only permits hardware VFP architectures (for example, --fpu=vfpv3, --fpu=softvfp+vfpv2),
to be specified when MRRC and MCRR instructions are supported in the processor instruction set. MRRC and MCRR instructions are not supported in 4, 4T, 5T and 6-M.
Therefore, the compiler does not allow the use of these CPU architectures with hardware VFP architectures.
Other than this, the compiler does not check that --cpu and --fpu combinations are valid.
Beyond the scope of the compiler, additional architectural constraints apply.
For example, VFPv3 is not supported with architectures prior to ARMv7.
Therefore, the combination of --fpu and --cpu options permitted by the compiler does not necessarily translate to the actual device in use.
The compiler only generates scalar floating-point operations.
If you want to use VFP vector operations, you must do this using assembly code.
NEON support is disabled for softvfp.
Default
The default target FPU architecture is derived from use of the --cpu option.
If the CPU specified with --cpu has a VFP coprocessor, the default target FPU architecture is the VFP architecture for that CPU.
For example, the option --cpu ARM1136JF-S implies the option --fpu vfpv2.
If a VFP coprocessor is present, VFP instructions are generated.
If you are building ARM Linux applications with --arm_linux or --arm_linux_paths,
the default is always software floating-point linkage.
Even if you specify a CPU that implies an FPU (for example, --cpu=ARM1136JF-S),
the compiler still defaults to --fpu=softvfp+vfp, not --fpu=vfp.
If there is no VFP coprocessor, the compiler generates code
that makes calls to the software floating-point library fplib to carry out floating-point operations.
ARM Compiler toolchain Compiler -- Supported ARM architectures的更多相关文章
- The specified system/compiler is not supported
之前安装了QT的4.5.3版本,现需要用到phonon库,因此卸载后想重新安装4.7版本,但当使用./configure编译时出现The specified system/compiler is no ...
- 终极解决办法rvct Cannot obtain license for Compiler (feature compiler) with license version >= 3.1
参考:https://blog.csdn.net/nic_r/article/details/7458038 ARM C/C++ Compiler, RVCT4. [Build ] armcc : e ...
- ARM处理器的寄存器,ARM与Thumb状态,7中运行模式
** ARM处理器的寄存器,ARM与Thumb状态,7中运行模式 分类: 嵌入式 ARM处理器工作模式一共有 7 种 : USR 模式 正常用户模式,程序正常执行模式 FIQ模式(Fast ...
- windows Compiler toolchain env
1,gygwin
- ARM处理器的寄存器,ARM与Thumb状态,7中运行模式 【转】
转自:http://blog.chinaunix.net/uid-28458801-id-3494646.html ARM处理器工作模式一共有 7 种 : USR 模式 正常用户模式,程序正常 ...
- 拥抱ARM妹子 序章!ARM妹子~~ 哥我来啦!
一个负心汉即将移情别恋,从51转到ARM妹子啦?其实8是的,俺准备开后宫.哇——咔~咔~~.考虑功耗和成本等问题,只有51肯定是不够的,所以嘛~~(一脸坏笑)嘿嘿~~,ARM妹子俺追定了.出于对ARM ...
- ARM学习笔记12——GNU ARM汇编伪操作
1..section 1.1.语法格式 .section section_name[,"flags"[,%type[,flag_specific_arguments]]] 1.2. ...
- ARM学习笔记11——GNU ARM汇编程序设计
GNU ARM汇编程序设计中,每行的语法格式如下: [<label>:] [<instruction | directive | pseudo-instruction>] @c ...
- ARM学习笔记10——GNU ARM命令行工具
一.编译器arm-linux-gcc 1.用arm-linux-gcc编译一个程序,一般它是要经过如下步骤的: 1.1.预处理阶段 编译器把上述代码中stdio.h编译进来,使用GCC的选项-E可以使 ...
随机推荐
- mysql 添加索引后 在查询的时候是mysql就自动从索引里面查询了。还是查询的时候有单 独的参数查询索引?
MYSQL在创建索引后对索引的使用方式分为两种:1 由数据库的查询优化器自动判断是否使用索引:2 用户可在写SQL语句时强制使用索引 下面就两种索引使用方式进行说明第一种,自动使用索引.数据库在收到查 ...
- MySQL与Oracle 差异比较之七其它
其它 编号 类别 ORACLE MYSQL 注释 1 内连接的更改 1.select a.*, b.*, c.*, d.* from a, b, c, d where a.id = b.id a ...
- AutoCompleteTextView不能使用的问题
AutoCompleteTextView按照网络上的方法写之后不能使用 解决方法: android:layout_width="fill_parent" 而不能是wrap_pare ...
- JQuery开发之Galleriffic图片插件介绍
Galleriffic是一个用于创建快速展示相册中照片的jQuery插件.从图一中可以看成,图片既可以以幻灯片的方式查看,也可以手动点击缩略图查看.Galleriffic还支持分页,从而使得它能够展示 ...
- min_free_kbytes
http://kernel.taobao.org/index.php?title=Kernel_Documents/mm_sysctl min_free_kbytes 先看官方解释:This is u ...
- HEAD
Branches are just pointers to commits Every branch is simply a named pointer to a commit. A special ...
- Android数据库升级,数据不丢失解决方案
假设要更新TableC表,建议的做法是: 1) 将TableC重命名为TableC_temp SQL语句可以这样写:ALERT TABLE TableC RENAME TO TableC_temp; ...
- -Xbootclasspath参数、java -jar参数运行应用时classpath的设置方法
当用java -jar yourJarExe.jar来运行一个经过打包的应用程序的时候,你会发现如何设置-classpath参数应用程序都找不到相应的第三方类,报ClassNotFound错误.实际上 ...
- 约瑟夫环 --- 面向对象 --- java代码
约瑟夫环 的 面向对象 解法 罗马人占领乔塔帕特后,39个犹太人与Josephus及他的朋友躲到一个洞中,39个犹太人决定宁愿死也不要被敌人抓到,于是决定了一个自杀方式,41个人排成一个圆圈,由第1个 ...
- Chapter11:关联容器
当用decltype来获得一个函数指针类型时,必须加上一个*来指出我们要使用一个给定函数类型的指针.decltype<CompareIsbn>*. map<string, int&g ...