日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

[toolchains]-ARM ToolChains介绍

發(fā)布時間:2025/3/21 编程问答 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [toolchains]-ARM ToolChains介绍 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

★★★個人博客導(dǎo)讀首頁—點擊此處 ★★★

目錄

        • 1、toolchains版本的介紹
        • 2、toolchains中的命令介紹
        • 3、objdump的詳細使用


★★★ 友情鏈接 : 個人博客導(dǎo)讀首頁—點擊此處 ★★★

1、toolchains版本的介紹

在linaro官網(wǎng)有眾多toolchains的版本,目前比較常用的是4.9-2016.02

Parent Directory folder 4.9-2016.02 - folder 4.9-2017.01 - folder 5.1-2015.08 - folder 5.2-2015.11 - folder 5.2-2015.11-1 - folder 5.2-2015.11-2 - folder 5.3-2016.02 - folder 5.3-2016.05 - folder 5.4-2017.01 - folder 5.4-2017.05 - folder 5.5-2017.10 - folder 6.1-2016.08 - folder 6.2-2016.11 - folder 6.3-2017.02 - folder 6.3-2017.05 - folder 6.4-2017.08 - folder 6.4-2017.11 - folder 6.4-2018.05 - folder 6.5-2018.12 - folder 7.1-2017.05 - folder 7.1-2017.08 - folder 7.2-2017.11 - folder 7.3-2018.05 - folder 7.4-2019.02 - folder 7.5-2019.12

比如我們選擇4.9-2016.02這個版本查看
https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/

arm開頭的是arm32使用的,aarch64開頭的是arm64使用的,帶hf的是支持浮點型的

  • aarch64-linux-gnu

  • arm-linux-gnueabi

  • arm-linux-gnueabihf

2、toolchains中的命令介紹

toolchains支持眾多命令,列舉如下:

gcc-linaro-4.9-2015.02-3-x86_64_aarch64-linux-gnu/bin$ ls aarch64-linux-gnu-addr2line aarch64-linux-gnu-cpp aarch64-linux-gnu-gcc-ar aarch64-linux-gnu-gfortran aarch64-linux-gnu-objcopy aarch64-linux-gnu-strings aarch64-linux-gnu-ar aarch64-linux-gnu-elfedit aarch64-linux-gnu-gcc-nm aarch64-linux-gnu-gprof aarch64-linux-gnu-objdump aarch64-linux-gnu-strip aarch64-linux-gnu-as aarch64-linux-gnu-g++ aarch64-linux-gnu-gcc-ranlib aarch64-linux-gnu-ld aarch64-linux-gnu-ranlib gdbserver aarch64-linux-gnu-c++ aarch64-linux-gnu-gcc aarch64-linux-gnu-gcov aarch64-linux-gnu-ld.bfd aarch64-linux-gnu-readelf runtest aarch64-linux-gnu-c++filt aarch64-linux-gnu-gcc-4.9.3 aarch64-linux-gnu-gdb aarch64-linux-gnu-nm aarch64-linux-gnu-size

部分命令介紹:

  • aarch64-linux-gnu-gcc 這就是交叉編譯器,將源文件編譯成elf可執(zhí)行文件
  • aarch64-linux-gnu-strip 刪除elf中的符號表,生成干凈的可執(zhí)行文件
  • aarch64-linux-gnu-objdump 將elf文件反匯編,輸出dump文件

3、objdump的詳細使用

查看help信息

bin$ ./aarch64-linux-gnu-objdump Usage: ./aarch64-linux-gnu-objdump <option(s)> <file(s)>Display information from object <file(s)>.At least one of the following switches must be given:-a, --archive-headers Display archive header information-f, --file-headers Display the contents of the overall file header-p, --private-headers Display object format specific file header contents-P, --private=OPT,OPT... Display object format specific contents-h, --[section-]headers Display the contents of the section headers-x, --all-headers Display the contents of all headers-d, --disassemble Display assembler contents of executable sections-D, --disassemble-all Display assembler contents of all sections-S, --source Intermix source code with disassembly-s, --full-contents Display the full contents of all sections requested-g, --debugging Display debug information in object file-e, --debugging-tags Display debug information using ctags style-G, --stabs Display (in raw form) any STABS info in the file-W[lLiaprmfFsoRt] or--dwarf[=rawline,=decodedline,=info,=abbrev,=pubnames,=aranges,=macro,=frames,=frames-interp,=str,=loc,=Ranges,=pubtypes,=gdb_index,=trace_info,=trace_abbrev,=trace_aranges,=addr,=cu_index]Display DWARF info in the file-t, --syms Display the contents of the symbol table(s)-T, --dynamic-syms Display the contents of the dynamic symbol table-r, --reloc Display the relocation entries in the file-R, --dynamic-reloc Display the dynamic relocation entries in the file@<file> Read options from <file>-v, --version Display this program's version number-i, --info List object formats and architectures supported-H, --help Display this information

總結(jié)

以上是生活随笔為你收集整理的[toolchains]-ARM ToolChains介绍的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。