当前位置:网站首页 > 技术博客 > 正文

linux arm交叉编译程序步骤



ARM交叉编译工具链

 
  
 
  
  1. GNU(提供源码,自行编译制作)
  2. Codesourcery
  3. Linora (提供源码,和已经编译好的release binrary)
 
  
 
  
 
  
名称 描述 详情 ABI 二进制应用程序接口(Application Binary Interface (ABI) for the ARM Architecture) 在计算机中, 应用二进制接口描述了应用程序(或者其他类型)和操作系统之间或其他应用程序的低级接口 EABI 嵌入式ABI (Embedded Application Binary Interface) 嵌入式应用二进制接口指定了文件格式、数据类型、寄存器使用、堆积组织优化和在一个嵌入式软件中的参数的标准约定. 开发者使用自己的汇编语言也可以使用 EABI 作为与兼容的编译器生成的汇编语言的接口

两者主要区别是,ABI是运行在x86,x64平台, EABI是嵌入式平台上(如ARM,MIPS,android, iOS等)。


 
    
 
    
 
    
 
    

命名规则

对应分别是 :

arch [-vendor] [-os] [-(gnu)eabi]


https://developer.arm.com/embedded

 
      
 
      

snapdragon boards

Latest Linux Targeted Binary Toolchain Releases

linaro toolchain binaries

arm版本 硬件型号 arm-linux-gnueabihf 32-bit Armv7 Cortex-A, hard-float, little-endian Release-Notes Binaries Source armv8l-linux-gnueabihf 32-bit Armv8 Cortex-A, hard-float, little-endian Release-Notes Binaries Source aarch64-linux-gnu 64-bit Armv8 Cortex-A, little-endian Release-Notes Binaries Source

Latest Bare-Metal Targeted Binary Toolchain Releases (也可以认为是MCU,不跑操作系统)

arm版本 硬件型号 arm-eabi 32-bit Armv7 Cortex-A, soft-float, little-endian Release-Notes Binaries Source aarch64-elf 64-bit Armv8 Cortex-A, little-endian Release-Notes Binaries Source

Open source GNU tools for Arm processors: GNU compiler (GCC), binutils, GNU debugger (GDB) and newlib

1> GNU toolchain for the A-profile architecture

 
       

Download GNU Toolchain for the A-profile architecture

 
       

2> GNU toolchain for embedded processors

 
       

Pre-built GNU toolchain for Arm Cortex-M and Cortex-R processors

The GNU Arm Embedded toolchains are integrated and validated packages featuring the Arm Embedded GCC compiler, libraries and other GNU tools necessary for bare-metal software development on devices based on the Arm Cortex-M and Cortex-R processors. The toolchains are available for cross-compilation on Microsoft Windows, Linux and Mac OS X host operating systems.

These toolchains are based on Free Software Foundation's (FSF) GNU Open source tools and newlib.

These toolchains support Arm Cortex-M0, Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M7, Cortex-M23, Cortex-M33, Cortex-R4, Cortex-R5, Cortex-R7, Cortex-R8 and Cortex-R52 processors.

The toolchains support code generation for non-OS or 'bare-metal' environments. These toolchains are based on Free Software Foundation's (FSF) GNU Open source tools and newlib.

 
       
 
       
 
       
 
       

https://launchpad.net/gcc-linaro

https://launchpad.net/gcc-linaro/+packages

qemu WIKi


介绍区别

https://www.crifan.com/files/doc/docbook/cross_compile/release/html/cross_compile.html#crosscompiler_name_examples

 
        
       
      
     
    
   
  
  

                            

版权声明


相关文章:

  • java学会增删改查达到什么水平2025-08-31 12:01:02
  • html表单属性有哪些2025-08-31 12:01:02
  • c语言pthread线程池2025-08-31 12:01:02
  • python程序设计课设2025-08-31 12:01:02
  • 图形验证码实现原理2025-08-31 12:01:02
  • 马达控制驱动ic2025-08-31 12:01:02
  • ddim是什么2025-08-31 12:01:02
  • mipi接口长什么样2025-08-31 12:01:02
  • scrt怎么安装2025-08-31 12:01:02
  • textview padding2025-08-31 12:01:02