下载解压 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. LeetCode 二叉树的最小深度

    计算二叉树的最小深度.最小深度定义为从root到叶子节点的最小路径. public class Solution { public int run(TreeNode root) { if(root = ...

  2. C++之类的静态变量

    成员变量 通过对象名能够访问public成员变量 每个对象都可以有只属于自己的成员变量 成员变量不能在对象之间共享 类的静态成员 静态成员变量  存储在   全局数据区 #include<std ...

  3. python学习之day9

    队列queue 队列是线程安全的,它保证多线程间的数据交互的一致性. 先进先出队列Queue import queue q = queue.Queue(maxsize=3) #maxsize为队列最大 ...

  4. Python之路Day13

    day13主要内容:JavaScript.DOM.jQuery 武Sir blog:http://www.cnblogs.com/wupeiqi/articles/5369773.html JavaS ...

  5. Nginx阅读笔记

    Nginx最常用的服务是提供反向代理,大家熟悉的最多的是正向代理,正向代理我们平常接触的最多,例如云梯,我们通过代理服务器作为客户端这边的中介接受请求,隐藏真实的客户,向服务器获取资源.而反向代理顾名 ...

  6. (IOS)N duplicate symbols for architecture i386

    Xcode编译时的error,出现此情况的汇总引用如下: 1.可能存在两个main入口: 2.导入的.h文件可能误写为.m: 3.两文件间可能存在重复定义的全局变量名: 4.使用#include导入文 ...

  7. QT学习 之 文本文件读写

    上一章我们介绍了有关二进制文件的读写.二进制文件比较小巧,却不是人可读的格式.而文本文件是一种人可读的文件.为了操作这种文件,我们需要使用QTextStream类.QTextStream和QDataS ...

  8. C的memset,memcpy,strcpy 的区别 及memset memcpy memmove源码

    extern void *memcpy(void *dest,void *src,unsigned int count);#include <string.h>   功能:由src所指内存 ...

  9. fstream,ifstream,ofstream 详解与用法

    fstream,istream,ofstream 三个类之间的继承关系 fstream :(fstream继承自istream和ofstream)1.typedef basic_fstream< ...

  10. QT中QWidget类简介

    一.详细描述 QWidget类是所有用户界面对象的基类.通俗的来讲,Qt基本上所有的UI类都是由QWidget继承出来的,而QWidget继承于QObject,  大家可以查阅Qt source 即可 ...