LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2009, 03:49 PM   #1
nesta
Member
 
Registered: Aug 2006
Posts: 100

Rep: Reputation: 15
what are the naming conventions of gcc cross-complier?


Dear all,
actually i want to know what are the naming convention & consequently the capabilities of the gcc cross-compiler?

for example:

arm-linux-gcc?

i think it supports to compile codes that
1. will run on arm processors.
2. the OS is linux

but is it to build the kernel itself or the applications that will run on Linux OS? How can i deduce something like this just from the naming of the cross compiler?

also i am using: arm-none-linux-gnueabi-gcc to build a linux kernel that will run on debian distribution?
what does the word "none" & the word "gnueabi" mean?

if there is a link that explains this staff in general i will appreciate it.

thanks for ur help
 
Old 09-14-2009, 09:08 AM   #2
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
unfortunately, there's no real 'hard and fast' rules on this. For instance, arm-none-linux-gnueabi-gcc doesn't specify if it is for armv9t or armv5tel or what. Deducing which capabilities a cross compiler has from it's name alone will be a very difficult and error-prone process.

However, generally, the bsp authors/support staff know what the specific board has been qualified for and so distribute a proper cross compiler. If you're worried that it won't properly build your kernel - you could be right! The linux kernel team has a tendancy to use undocumented and potentially 'buggy' side effects of the gnu compilers which end up tying the kernel to a specific gnu compiler version (and sometimes even weirder options requirements). This has generally become less of a problem in the last few years, but was REALLY bad around 2001-2003. Enough of the off-topic though.

The only way to know if the cross-compiler you have will do what you need it to do, sadly, is to use it and discover issues when they crop up. Sadly, this is one area of the open-source realm where most of the information involves a heavy amount of voodoo and waving dead chickens. Google will be helpful, but only if you're willing to spend a week wading through every email thread in the first 50 pages of results.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Naming Conventions Hitboxx Fedora 4 07-12-2006 08:58 AM
The Naming Conventions nodisk Linux - Newbie 6 12-15-2005 05:15 AM
Java Naming Conventions logosys Programming 0 11-10-2005 08:21 PM
variable naming conventions patpawlowski Programming 6 02-25-2004 01:49 PM
Naming conventions ??? bigjohn Linux - Newbie 1 12-07-2003 10:25 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration