LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-03-2011, 02:18 PM   #1
surban99
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian & Suse
Posts: 81

Rep: Reputation: 15
compiling on arm


I've managed to install debian on an armv5 device(namely the zipit2). I've read that compiling will allow me to have a binary that's specific to my processor. Does that mean I can take ANY source code and as long as it's compiled on my zipit it will work on my zipit? for example fenec?
 
Old 03-03-2011, 02:39 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
As long as it is portable enough to be compiled for ARM, and all dependencies are met, yeah.

Although you wouldn't compile on the ARM machine, you would cross-compile it from a more powerful machine.
 
Old 03-03-2011, 02:41 PM   #3
surban99
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian & Suse
Posts: 81

Original Poster
Rep: Reputation: 15
what do you mean as "portable enough"? you mean the code has to be optimized for all those different processors?
 
Old 03-03-2011, 02:50 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,064

Rep: Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894Reputation: 894
Quote:
Originally Posted by surban99 View Post
what do you mean as "portable enough"? you mean the code has to be optimized for all those different processors?
Up to a point/yes, and more: it is possible for the code to be written with assumptions about the display, the way interrupts work on the particular processor, the organisation and access to memory that may not be consistent with the hardware that you have. And it is not just 'the program' but the program, plus all of the dependencies.

And there is speed; while you might think that this is just an issue of how fast the final program runs, it is quite possible that iof you run the code on a platform that is, eg, an order of magnitude slower, race hazards could show up that were never visible on the original platform.

So while, in principle, compiling for your platform could, theoretically, get anything working, in practice you might have a few interesting hurdles to overcome, and, if you are not good at debugging and have good documentation, you might find some of those hurdles a bit tough.
 
  


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
Compiling debian arm for NSLU2 - arm-linux-gnueabi-objdump not found ergosteur Linux - Kernel 3 10-30-2010 12:24 PM
Compiling gstreamer for ARM shariefbe Linux - Newbie 4 12-27-2009 03:33 AM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 07:07 AM
Error compiling 2.6.26 for ARM zahidul Linux - Kernel 0 11-04-2008 06:20 AM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration