交叉工具链

一、安装

进行嵌入式开发前首先需安装叉工具链骤如下:

1、 解压工具链到某一目录下

        例:     tar xvzf arm-linux-gcc-4.3.2.tar.gz C /

2、  修改/etc/profile ,pathmunge /usr/local/arm/4.3.2/bin

3、 source /etc/profile

二、使用

 编译:                           arm-linux-gcc arm-linux-gcc hello.c o hello

 汇编:                       arm-linux-objdump arm-linux-objdump D S hello

 ELF查看:        arm-linux-readelf

           arm-linux-readelf a hello

           arm-linux-readelf d hello   hello用的态库

原文地址:https://www.cnblogs.com/dolphi/p/2420205.html