What is the difference between arm-linux-gcc and arm-none-linux-gnueabi

Toolchains have a loose name convention like arch[-vendor][-os]-abi.

arch is for architecture: arm, mips, x86, i686...
vendor is tool chain supplier: apple,
os is for operating system: linux, none (bare metal)
abi is for application binary interface convention: eabi, gnueabi, gnueabihf
For your question, arm-none-linux-gnueabi and arm-linux-gnueabi is same thing. arm-linux-gcc is actually binary for gcc which produces objects for ARM architecture to be run on Linux with default configuration (abi) provided by toolchain.

This might be true, but really, there's not enough information to be sure. You need to know about the provenance of the toolchain. Non-"gnueabi" toolchains are probably quite rare, however. –  ams Dec 10 '12 at 9:41 
   
 Are you talking about arm-linux-gcc? or can you clarify? –  auselen Dec 10 '12 at 9:46 
   
 It's worth pointing out that tool-chains are configured with default header and library search paths. When cross-compiling, these should be pointing at the target image not the development machine's own headers and libraries. Thus you can easily end up with a compiler which reports its specification as arm-none-linux-gnueabi that actually compile with slightly different results. You can check this with gcc -print-sysroot –  marko Dec 10 '12 at 9:50 
   
 @auselen: Yes, arm-linux seems ambiguous to me. I've not checked, and it might be that in current gcc that's a synonym, but I'll bet it's meant something different in the past. Besides, the triplet only specifies the default config, and the toolchain could have been built with other settings enabled; in that case, I would choose the generic triplet rather than have it lie. –  ams Dec 10 '12 at 9:55 
   
 @ams if I understand you correctly, you say arm-linux-gcc executes default settings as toolchain have been built. yes you are definitively right. –  auselen Dec 10 '12 at 9:58 

参考链接:https://stackoverflow.com/questions/13797693/what-is-the-difference-between-arm-linux-gcc-and-arm-none-linux-gnueabi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值