LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-22-2004, 06:34 PM   #1
klod
Member
 
Registered: Apr 2003
Location: shoebox (with broadband ;)
Distribution: debian woody/sid
Posts: 70

Rep: Reputation: 15
Linux software on powerpc


Hello! I'm getting a powerbook soon and my plans so far is to run debian on it (wont be needing the wlan until next year, so I'll hope for someone to reeeallly threaten broadcom for som info about writing drivers for the aiport extreme but in the coming months i wont be needing it .

Now to the probalby dumb question: since this pc uses a risc-processor what software can be compiled on it? My guess is that compiling software (running software in general) is limited to software written for the risc, right? Or can I actually run any linux software on this machine if I play my cards right (meaning getting the compiler set up straight?)

Another example: There is a windows and a linux version of enemy territory, if I install linux on the powerbook will it be able to run the linux version?

Cheers, Klod
 
Old 09-23-2004, 01:39 AM   #2
rm6990
Member
 
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
You will have to get binaries precompiled for Risc or compile from source using GCC set up to compile for Risc. Also, Enemy Territory might not work because it is an i386 binary and I don't think the source code is available.
 
Old 09-23-2004, 01:51 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
Most software isn't really written for a particular processor, although all binaries only execute on the architecture for which they were compiled (and any compatible ones, but most architectures are incompatible with one another). Code written in a high level language such as C or C++ can be compiled on any architecture for which there exists a compiler, so long as the software is written portably (i.e. it sticks to standards and doesn't use any platform dependent features such as inline assembler code). Code written in Java will work for any architecture which has a JVM (Java Virtual Machine) ported to it. Obviously stuff written in x86 assembler only works on x86 platforms though (unless you have an emulator or something, in which case you're running the software on the emulator, not the "bare metal"). Hopefully, this clears a couple of things up -- to summarize:

-- portable (i.e. standard compliant) code will compile and run on any platform that supports the standards it conforms to.
-- binaries are platform specific, though some options exist for emulation (I believe the Bichs emulator will run on Macs).
 
Old 09-23-2004, 02:43 AM   #4
klod
Member
 
Registered: Apr 2003
Location: shoebox (with broadband ;)
Distribution: debian woody/sid
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you for the quick replys. Do you by any chance now if these standards are met (writing nice non-dependent code that is?) often or am I likely to be tearing some poor floppy to piesces every time gcc gives me an error just because everything isn't really nicely written?

Cheers, Klod
 
Old 09-23-2004, 05:02 AM   #5
diabolo
LQ Newbie
 
Registered: Sep 2004
Distribution: Ubuntu PPC
Posts: 4

Rep: Reputation: 0
I haven't had many problems compiling on Yellow Dog PPC. The only yucky thing so far was making a minor modification to some preprocessor stuff in one of the chmlib source files. Other than that everything's gone fine.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
linux on powerpc g3 Samsara Linux - Hardware 29 05-25-2008 12:09 AM
powerpc radio broadcasting software on linux schneek2000 Linux - Software 3 11-30-2005 04:44 PM
PowerPc Linux fireemblem555 Linux - General 3 10-16-2005 09:14 PM
Preinstall linux on a powerpc harddrive? six6 Linux - General 1 04-21-2005 03:22 AM
Linux on PowerPC PowerBook 3400c lorengd Linux - Laptop and Netbook 3 02-09-2004 12:18 PM


All times are GMT -5. The time now is 01:59 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration