查了很久才弄清楚arm-none-linux-gnueabi交叉編譯器是,與ARM公司合作的codesourcery公司推出的,基於GCC,但是進行過最佳化的編譯器。官方網站
http://www.codesourcery.com/
codesourcery推出的產品叫Sourcery G++ Lite Edition,其中基於command-line的編譯器是免費的,在官網上可以下載,而其中包含的IDE和debug 工具是收費的,當然也有30天試用版本的。
-none-linux-gnueabi-xxx用它的最大理由我想應該是浮點運算。官網上是這麼說的:
Question<br />How do I get the compiler to generate VFP instructions? </p><p>Answer<br />Use the options -mfpu=vfp -mfloat-abi=softfp to enable VFP instructions.<br />
同時編譯器名字中的eabi也有解釋
Question<br />What is the ABI for the Architecture? Is it the same as the EABI? </p><p>Answer<br />The ABI for the Architecture is a standard developed by and its partners (including CodeSourcery) that explains how compilers, assemblers, linkers, and other similar tools should generate object files and executable files. Tools that correctly implement the ABI for the Architecture can interoperate; i.e., objects files built with one toolchain can be combined with object files built with another toolchain if both compilers use the ABI for the Architecture. The " EABI" is an informal name for the ABI for the Architecture.<br />