<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > arm-linux 4.3.2 交叉工具鏈的安裝

          arm-linux 4.3.2 交叉工具鏈的安裝

          作者: 時(shí)間:2016-11-27 來源:網(wǎng)絡(luò) 收藏
          1.先解壓到根目錄下(目錄可隨意選擇),解壓完成后在/usr/local目錄中會(huì)增加子目錄arm,該目錄就是工具鏈的安裝目錄

          命令:tar zxvf arm-linux-gcc-4.3.2.tgz -C /

          本文引用地址:http://www.ex-cimer.com/article/201611/322210.htm

          2.為了在整個(gè)文件系統(tǒng)下都能使用交叉編譯命令,需要將/usr/local/arm/4.3.2/bin添加到環(huán)境變量PATH中

          修改/root/.bashrc,在最后添加代碼:

          export PATH=$PATH:/usr/local/arm/4.3.2/bin

          修改/etc/profile文件(實(shí)驗(yàn)的時(shí)候不修改此文件也可以,暫不明白.bashrc和profile有什么區(qū)別)。

          添加pathmunge /usr/local/arm/4.3.2/bin

          執(zhí)行source/etc/profile

          3.查看安裝是否成功

          命令:arm-linux-gcc -v顯示版本

          附錄:

          (1)gcc編譯器的使用

          命令:arm-linux-gcc hello.c -o hello

          (2)objdump反匯編命令的使用

          命令:arm-linux-objdump -D -S hello >log

          (3)readelf命令的使用(查看hello使用的動(dòng)態(tài)庫)

          命令:arm-linux-readelf -d hello >log

          file命令(查看可執(zhí)行文件格式)

          命令:file hello



          關(guān)鍵詞: armlinux交叉工具

          評論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();