LinuxQuestions.org
Review your favorite Linux distribution.
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 08-27-2008, 05:07 AM   #1
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Rep: Reputation: 15
all about cross compilation


hi all
i would like to know about cross compilation.

1.what is meant by cross compilation.
2.what is the use and where can we use and can i use it fedora 9.
3.how to do it(step by step).
4.i have to cross compile "hello gtk" (helloword.c).

any help it should be appreciable
 
Old 08-27-2008, 05:25 AM   #2
vkmgeek
Member
 
Registered: Feb 2006
Location: Ahmedabad
Distribution: rhel5
Posts: 185
Blog Entries: 2

Rep: Reputation: 31
cross compilation is basically your Host Platform/OS/Kernel and the Target platform/OS/Kernel for which you are compiling your source are Different........

And there is always Cross tool chain (if needed) is available............
 
Old 08-27-2008, 05:33 AM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
1. A cross-compiler is a compiler which can build software intended to run on the same operating system but a different CPU, or on a different operating system (with the same or different CPU).

2. The traditional use of a cross-compiler has been to build software for a less capable computer using software on a more capable computer (compiles faster, more convenient to use, etc). For example, some versions of the Macintosh System were built on a Cray supercomputer. You can build your own cross-compiler to do things such as build an operating system and software for an ARM CPU - this is fairly popular in the world of "embedded" computing. If you really feel like it, you can even use a compiler on an Intel Pentium computer running Linux to build software for a PowerPC computer running OSX Leopard.

I have no idea if there are pre-built cross-compilers on Fedora9.

3. See the GNU GCC documentation on cross compiling; you can find it via the FSF website. You can also go to the Linux From Scratch project and look at the documentation of the CLFS subproject; that gives you an abridged version of how to build a cross-compiler.

4. I have no idea what you're talking about. Cross compile what program on what computer for what other computer?
 
Old 08-27-2008, 05:49 AM   #4
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Original Poster
Rep: Reputation: 15
hey! good explanation.

Quote:
Originally Posted by pinniped View Post
4. I have no idea what you're talking about. Cross compile what program on what computer for what other computer?
i seen the word helloworld in the link and i did not understand the tutorial it self.
http://linux.bytesex.org/cross-compiler.html
so i kept my querry here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
kernel cross compilation mathimca05 Linux - Kernel 1 01-25-2008 12:17 AM
cross compilation NeoMagic Programming 5 12-13-2006 02:19 AM
Cross-Compilation Question lucky6969b Linux - Software 0 12-01-2005 07:31 PM
cross compilation Kocil Slackware 6 12-18-2003 01:53 PM
Cross-compilation radhapriya Linux - Software 0 08-11-2003 07:24 AM

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

All times are GMT -5. The time now is 03:35 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