Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

arm-linux-gcc vs arm-elf-gcc

I am looking at uClinux system that builds the kernel with arm-linux-xxx, but builds the user apps with arm-elf-xxx.

If the apps are intended to run on linux, wouldn't it be better to build everything with arm-linux-xxx ?

Where does one set that option in the overall uClinux build config?

like image 868
user126593 Avatar asked Oct 14 '22 17:10

user126593


2 Answers

The names of the compilers don't necessarily mean anything. Depending on who built the compilers (and named them), you'll get differing results. Arguably, there is a correct name for a particular configuration, but some random compiled gcc may not be correct.

For the CodeSourcery compilers (likely the most correct names), see their platforms page for what their naming means.

like image 63
Adam Goode Avatar answered Oct 20 '22 13:10

Adam Goode


You can run arm-linux-gcc -v and arm-elf-gcc -v to see some differences between these two versions of gcc (such as target architectures/languages).

like image 27
gfour Avatar answered Oct 20 '22 14:10

gfour