zoukankan      html  css  js  c++  java
  • 安装交叉编译工具

    1、下载交叉编译工具链

    GNU官方下载地址:https://launchpad.net/gcc-arm-embedded/+download

    命名规则:

    交叉编译工具链的命名规则为:arch [-vendor] [-os] [-(gnu)eabi]

    • arch - 体系架构,如ARM,MIPS
    • verdor - 工具链提供商
    • os - 目标操作系统
    • eabi - 嵌入式应用二进制接口

    根据对操作系统的支持与否,ARM GCC可分为支持和不支持操作系统,如

    • arm-none-eabi:这个是没有操作系统的,自然不可能支持那些跟操作系统关系密切的函数,比如fork(2)。他使用的是newlib这个专用于嵌

           入式系统的C库。

    • arm-none-linux-eabi:用于Linux的,使用Glibc

    1、arm-none-eabi-gcc

    (ARM architecture,no vendor,not target an operating system,complies with the ARM EABI)

    用于编译 ARM 架构的裸机系统(包括 ARM Linux 的 boot、kernel,不适用编译 Linux 应用 Application),

    一般适合 ARM7、Cortex-M 和 Cortex-R 内核的芯片使用,所以不支持那些跟操作系统关系密切的函数,

    比如fork(2),他使用的是 newlib 这个专用于嵌入式系统的C库。

     

    2、arm-none-linux-gnueabi-gcc

    (ARM architecture, no vendor, creates binaries that run on the Linux operating system, and uses the GNU EABI)

    主要用于基于ARM架构的Linux系统,可用于编译 ARM 架构的 u-boot、Linux内核、linux应用等。

    arm-none-linux-gnueabi基于GCC,使用Glibc库,经过 Codesourcery 公司优化过推出的编译器。

    arm-none-linux-gnueabi-xxx 交叉编译工具的浮点运算非常优秀。一般ARM9、ARM11、Cortex-A 内

    核,带有 Linux 操作系统的会用到。

     

    3、arm-eabi-gcc

    Android ARM 编译器。

     

    4、armcc

    ARM 公司推出的编译工具,功能和 arm-none-eabi 类似,可以编译裸机程序(u-boot、kernel),

    但是不能编译 Linux 应用程序。armcc一般和ARM开发工具一起,Keil MDK、ADS、RVDS和DS-5中

    的编译器都是armcc,所以 armcc 编译器都是收费的(爱国版除外,呵呵~~)。

     

    5、arm-none-uclinuxeabi-gcc 和 arm-none-symbianelf-gcc

    arm-none-uclinuxeabi 用于uCLinux,使用Glibc。

    arm-none-symbianelf 用于symbian,没用过,不知道C库是什么 。

     

    总结如下:

    arm-none-eabi-gcc ,表示目标处理器是 ARM ,不运行操作系统,仅运行前后台程序

    arm-uclinux-eabi-gcc ,表示目标处理器是 ARM ,运行 uClinux 操作系统;

    arm-none-linux-gnueabi-gcc ,表示目标处理器是 ARM ,运行 Linux 操作系统;

     

    mips-linux-gnu-gcc ,表示目标处理器是 MIPS ,运行 Linux 操作系统。

     

  • 相关阅读:
    React生命周期
    React第三次入门
    滴滴新锐面经
    前端优化
    Z-index
    maven建ssh项目的pom文件
    拦截器与过滤器的区别
    Jquery的ajax获取action中的返回值
    清空数据库所有表的数据
    orcal操作锦集
  • 原文地址:https://www.cnblogs.com/huang-y-x/p/12343651.html
Copyright © 2011-2022 走看看