LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 01: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, 01:39 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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, 01: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, 01:50 PM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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



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 11:24 AM
Compiling gstreamer for ARM shariefbe Linux - Newbie 4 12-27-2009 02:33 AM
Cross compiling for ARM Hachaso Programming 1 06-26-2009 06:07 AM
Error compiling 2.6.26 for ARM zahidul Linux - Kernel 0 11-04-2008 05:20 AM
Cross compiling utftpd for arm SachinTCS Linux - Desktop 1 04-13-2007 02:11 AM

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

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