博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
RVCT的Linux环境变量配置 ARM® RVDS™ 4.1(b713)
阅读量:6153 次
发布时间:2019-06-21

本文共 4566 字,大约阅读时间需要 15 分钟。

下载解压 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/462/include/unix
export ARMCC41LIB=/opt/armrvds/4.1BLD713/RVCT/Data/4.1/462/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/349/include/unix
    export RVCT22LIB=$ARMROOT/RVCT/Data/2.2/349/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[] 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.

[]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
  • 支持库。

详细见:

 

 

转载地址:http://rfwfa.baihongyu.com/

你可能感兴趣的文章
垂死挣扎还是涅槃重生 -- Delphi XE5 公布会归来感想
查看>>
淘宝的几个架构图
查看>>
Android扩展 - 拍照篇(Camera)
查看>>
数据加密插件
查看>>
linux后台运行程序
查看>>
win7 vs2012/2013 编译boost 1.55
查看>>
Tar打包、压缩与解压缩到指定目录的方法
查看>>
配置spring上下文
查看>>
Python异步IO --- 轻松管理10k+并发连接
查看>>
Oracle中drop user和drop user cascade的区别
查看>>
登记申请汇总
查看>>
Android Jni调用浅述
查看>>
CodeCombat森林关卡Python代码
查看>>
第一个应用程序HelloWorld
查看>>
(二)Spring Boot 起步入门(翻译自Spring Boot官方教程文档)1.5.9.RELEASE
查看>>
Java并发编程73道面试题及答案
查看>>
企业级负载平衡简介(转)
查看>>
ICCV2017 论文浏览记录
查看>>
科技巨头的交通争夺战
查看>>
当中兴安卓手机遇上农行音频通用K宝 -- 卡在“正在通讯”,一直加载中
查看>>