下载解压 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[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
  • 支持库。

详细见:

RVCT的Linux环境变量配置 ARM® RVDS™ 4.1(b713)的更多相关文章

  1. Linux环境变量配置全攻略

    Linux环境变量配置 在自定义安装软件的时候,经常需要配置环境变量,下面列举出各种对环境变量的配置方法. 下面所有例子的环境说明如下: 系统:Ubuntu 14.0 用户名:uusama 需要配置M ...

  2. Linux 环境变量配置的 6 种方法,建议收藏

    关注「开源Linux」,选择"设为星标" 回复「学习」,有我为您特别筛选的学习资料~ Linux环境变量配置 在自定义安装软件的时候,经常需要配置环境变量,下面列举出各种对环境变量 ...

  3. 超详干货!Linux 环境变量配置全攻略

    点击上方"开源Linux",选择"设为星标" 回复"学习"获取独家整理的学习资料! Linux环境变量配置 在自定义安装软件的时候,经常需要 ...

  4. Linux环境变量配置的三个方法--/etc/profile,~/.bashrc,shell

    [环境配置的原因] 在windows系统下,很多软件的安装都需要设置环境变量,比如安装JAVA JDK.如果不安装环境变量,在非软件安装的目录下运行javac命令,将会报告"找不到文件&qu ...

  5. Linux环境变量配置方法

    Linux上环境变量配置分为设置永久变量和临时变量两种.环境变量设置方法同时要考虑环境Shell类型,不同类型的SHELL设置临时变量方法和设置永久变量对应的配置文件不同.Linux环境变量本身配置过 ...

  6. Linux 环境变量配置(Nodejs/MongoDB/JDK/Nginx)

    一.环境变量配置 注:配置环境变量的文件 全局变量(系统级别): /etc/bashrc /etc/profile /etc/environment 用户变量(用户级别): ~/.bash_profi ...

  7. linux 环境变量配置方式

    linux 环境变量可以在多个文件中配置 说明: linux bash 运行模式分为两种: login shell 和non-login shell, 两种登录模式启动是加载的配置文件不一样. 1. ...

  8. linux 环境变量配置(node)

    控制台 env 查看当前的环境变量配置 修改/etc/profile文件,在末尾添加以下内容 export NODE_HOME=/usr/local/node //Node所在路径 export PA ...

  9. Redis学习笔记一(Redis的详细安装及Linux环境变量配置和启动)

     Redis Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API. 我使用的是下面这个版本: 若没有资源的话,我在 ...

随机推荐

  1. 在ASP.NET中动态加载内容(用户控件和模板)

    在ASP.NET中动态加载内容(用户控件和模板) 要点: 1. 使用Page.ParseControl 2. 使用base.LoadControl 第一部分:加载模板 下 面是一个模板“<tab ...

  2. 循环训练(for的嵌套、while、do while)以及异常处理

    For的嵌套 练习一: 练习二: 练习三: 练习四: while的使用方法: 示例一: 示例二: 示例三: while的练习题: do while的使用示例: 异常处理示例: try   catch  ...

  3. django 开发简易博客(二)

    这一节我们来了解模板和视图.URL的使用. 一.使用模板 在blog目录中新建templates文件夹,在templates文件夹下新建base.html文件.目录结构如下 templates/ ba ...

  4. JS 随记

    一.在内联框架中,刷新整个框架,在.net中使用此方法( ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "re ...

  5. querySelector和querySelectorAll方法介绍

    module dom { [Supplemental, NoInterfaceObject] interface NodeSelector { Element querySelector(in DOM ...

  6. AnsiString 在 Delphi 中虽然不可用,但是,在 C++ 中可以用

    [C++] C++ Builder 中 Ansi 编码的字符串在Android/iOS程序中显示的问题 呃,这个问题说起来,其实也不麻烦,C++ Builder 本身在 TEncoding 做了处理, ...

  7. QStringLiteral的两篇外文解释(编译期转换成QString)

    http://blog.qt.io/blog/2014/06/13/qt-weekly-13-qstringliteral/ https://woboq.com/blog/qstringliteral ...

  8. 如何用 Swift 语言构建一个自定控件

    (via:破船之家,原文:How To Make a Custom Control in Swift)   用户界面控件是所有应用程序重要的组成部分之一.它们以图形组件的方式呈现给用户,用户可以通过它 ...

  9. stm32之PWM

    PWM是pulse width modulation的缩写,即脉冲宽度调制.其通过对一系列脉冲的宽度进行调制,来等效地获得所需要波形: 1.PWM是一种对模拟信号电平进行数字编码的方法.通过高分辨率计 ...

  10. python字符串方法以及注释

    转自fishC论坛:http://bbs.fishc.com/forum.php?mod=viewthread&tid=38992&extra=page%3D1%26filter%3D ...