RVCT的Linux环境变量配置 ARM® RVDS™ 4.1(b713)

下载解压 armrvds.tar.gz到/opt 下

在自己的build.sh下导入RVCT的环境变量配置ARM® RVDS™4.1(b713):

export ARMROOT=/opt/armrvds/4.1BLD713/RVCT/Programs/4.1/713/linux-pentium
export ARM_BIN=/opt/armrvds/4.1BLD713/RVCT/Programs/4.1/713/linux-pentium
export ARMCC41INC=/opt/armrvds/4.1BLD713/RVCT/Data/4.1/713/include/unix
export ARMCC41LIB=/opt/armrvds/4.1BLD713/RVCT/Data/4.1/713/lib
export PATH=$ARM_BIN:$PATH

MAKE -rs

RVCT的环境变量配置ARM® RVDS™2.2(b616):

       export ARMROOT=/opt/ARM_2.2
    export ARM_BIN=$ARMROOT/RVCT/Programs/2.2/616/linux-pentium
    export RVCT22INC=$ARMROOT/RVCT/Data/2.2/616/include/unix
    export RVCT22LIB=$ARMROOT/RVCT/Data/2.2/616/lib
    export PATH=$ARM_BIN:$PATH

MAKE -rs

 

Toolchain environment variables

The ARM Compiler toolchain does not require environment variables to be set. However, there are situations where you might want to set environment variables. For example, if you want to specify additional command-line options for armcc, but you do not want to modify your build scripts, then you can specify the options usingARMCCnn_CCOPT.

The environment variables used by the toolchain are:

Table 1. Environment variables used by the toolchain

Environment variable[a]Setting
ARMROOT

Your installation directory root (install_directory). This documentation assumes thatinstall_directory isC:\Keil\ARM.

ARMCCnn_ASMOPT

An optional environment variable to define additional assembler options that are to be used outside your regular makefile.

The options listed appear before any options specified for thearmasm command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCCnn_CCOPT

An optional environment variable to define additional compiler options that are to be used outside your regular makefile.

The options listed appear before any options specified for thearmcc command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCCnn_FROMELFOPT

An optional environment variable to define additionalfromelf image converter options that are to be used outside your regular makefile.

The options listed appear before any options specified for thefromelf command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCCnn_LINKOPT

An optional environment variable to define additional linker options that are to be used outside your regular makefile.

The options listed appear before any options specified for thearmlink command in the makefile. Therefore, any options specified in the makefile might override the options listed in this environment variable.

ARMCCnnINC

The default system include path. That is, the path used to search for header filenames enclosed in angle-brackets. The compiler option-J overrides this environment variable.

The default location of the compiler include files is:

install_directory\RV31\INC

ARMCCnnLIB

The default location of the ARM standard C and C++ library files:

install_directory\RV31\LIB

The compiler option --libpath overrides this environment variable.

Note

If you include a path separator at the end of the path, the linker searches that directory and the subdirectories. So forinstall_directory\RV31\LIB the linker searches:

LIB

LIB\armlib

LIB\cpplib

ARMINC

Used only if you do not specify the compiler option-J andARMCCnnINC is either not set or is empty.

See the description of ARMCCnnINC for more information.

ARMLIB

Used only if you do not specify the compiler option--libpath andARMCCnnLIB is either not set or is empty.

See the description of ARMCCnnLIB for more information.

CYGPATH

The location of the cygpath.exe file on your system in Cygwin path format. For example:

C:/cygwin/bin/cygpath.exe

You must set this if you want to specify paths in Cygwin format for the compilation tools.

TMP

Used on Windows platforms to specify the directory to be used for temporary files. IfTMP is not defined, or if it is set to the name of a directory that does not exist, temporary files are created in the current working directory.

[a]Replacenn with the version of the toolchain you are using. For example,ARMCC41INC if you are using ARM Compiler toolchain v4.1.

 

ARM 编译器工具链

ARM 编译器工具链可用于编译由 C、C++ 或 ARM 汇编语言源代码编写的程序。它可为 32 位 ARM、16 位 Thumb 和 Thumb-2 指令集生成优化代码,并支持完整的符合 ISO 标准的 C 和 C++ 代码。此外,它还通过向量化 NEON 编译器支持 NEON SIMD 指令集。

ARM 编译器工具链由以下组件组成:

  • ARM、Thumb C 和 C++ 编译器 armcc
  • NEON 向量化编译器,可使用命令 armcc --vectorize 进行调用
  • ARM 和 Thumb 汇编程序 armasm
  • ARM 链接器 armlink
  • ARM 库管理程序 armar
  • ARM 图像转换实用工具 fromelf
  • 支持库。

详细见:

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
1 系统要求 运行 ARM® RealView® Development Suite (RVDS) v4.0 的计算机最低要求使用 1GHz Pentium III 系列处理 器, 512MB 的系统内存。 建议的计算机规格为 Pentium 4 系列处理器,内存为 1GB。 注意 如果使用 RVDS Professional 版,运行 ARM Profiler 的计算机的最低建议规格为 2GHz 双核处理器, 1GB 内存。 1.1 支持的平台 以下平台支持 RVDS v4.0: • Windows Vista Business Service Pack 1 • Windows Vista Enterprise Service Pack 1 • Windows XP Professional Service Pack 2 • Windows Server 2003 (仅编译器) • 用于 Intel x86 的 Red Hat Enterprise Linux WS 4 版 (使用 Gnome 窗口管理器和 bash Shell) • 用于 Intel x86 的 Red Hat Enterprise Linux WS 5 版 (使用 Gnome 窗口管理器和 bash Shell) 所有工具同时支持这些操作系统的 32 位和 64 位版本。 但是,RealView ICE 不支持 Red Hat Linux 的 64 位 版本,也不允许在 Windows Vista 中安装 64 位的 USB 驱动程序。 注意 RVDS v4.0 使用 Acresso Software Inc. (前身是 Software Business Unit of Macrovision Corporation)的 FLEXnet 许可证管理软件。 要使用浮动许可证,必须在每台相关计算机上配置并运行 TCP/IP 网络。 有关详 细信息,请参阅 《ARM 工具 FLEXnet 许可证管理指南 4.2 版》。 1.2 RealView ICE 主机软件 选择 Full/ 全部产品选项,就会安装在发行 RVDS v4.0 版本时可用的 RealView ICE 主机软件版本。 但对于 不同功能的使用,有不同的要求: • 对于硬件调试,要求使用 TCP/IP 或 USB 连接到主机的 RealView ICE 运行控制单元 • 对于使用 RealView Debugger 进行的捕获和分析跟踪,要求如下: — 要使用 Embedded Trace Buffer™ (ETB™) 捕获跟踪,要求使用 TCP/IP 或 USB 连接到主机的 RealView ICE 运行控制单元 — 要直接从 Embedded Trace Macrocell™(ETM™) 中捕获跟踪,需要 RealView Trace 或 RealView Trace 2 数据捕获单元,该单元通过 RealView ICE 运行控制单元连接到主机 注意 仅 Windows 平台支持使用 RealView Debugger 进行跟踪捕获和分析。 • 对于硬件性能分析,要求如下: — 使用 TCP/IP 或 USB 连接到主机的 RealView ICE 运行控制单元 — 使用 USB 连接到主机的 RealView Trace 2 数据捕获单元。 根据调试和跟踪要求,必须分别购买 RealView ICE、RealView Trace 和 RealView Trace 2 硬件。 您购买的 RealView ICE 硬件会包含某版本的 RealView ICE 主机软件。 有关详细信息,请参阅 《RealView ICE 和 RealView Trace 用户指南》。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值