Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-21-2011, 03:19 PM   #1
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
when is cross compiling needed?

So I have a basic understanding of cross compiling. However I keep running in to contradicting information. I have a core i3. If i want to take full advantage of the 64-bit processor and still be able to compile 32 bit, do I need to cross compile?
Old 10-21-2011, 03:47 PM   #2
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
not for certain, but i believe you would since the default architecture you would be compiling for would be the native architecture of the system hosting the compile, which in your case would be x86_64, thus if you want to compile 32 bits you would have to 'cross compile' the program as a 32 bit program.
Old 10-21-2011, 11:04 PM   #3
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled

So I guess I should look in to cross compiling gcc


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
Cross compiling Mike Davies Linux - Kernel 5 02-23-2018 12:30 PM
Cross-over connection - How to - help needed igadoter Linux - Networking 6 07-30-2010 04:40 PM
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 06:49 AM
Help needed on cross-compile MKSN Linux - Software 5 07-20-2006 04:59 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 12:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 PM.

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