if the source is made with the goal to be compiled on most computers, it   
will do with C, C++ ...
Gnu has some handy tools for that (autoconf for example)
with autoconf, you will provide a script to test what is available on the   
computer (compiler, libs, ...) and build a makefile for this achitecture.
You can recognize packages using autoconf when you see the configure   
script.
Otherwize, C programs writen for GCC should compile on most architectures   
running GCC with little editing of the makefiles ...

is this what you meant ?


 -----Message d'origine-----
De: Mike Werner [SMTP:[EMAIL PROTECTED]]
Date: vendredi 22 janvier 1999 08:51
�: Linux Newbie mailing list
Objet: Stupid question time

All righty, got a question here that I'm just really not too sure
about.  I think I know the answer, but i've been unable to find the
answer yet.  As I look through metalab at the various applications, I've
been wondering.  Is the source code transportable between different CPU
types?  As in, if I was to obtain an Alpha (god, I wish!) could I grab
any of the source packages and compile?  I know the binary packages
would have to be Alpha specific, but what about the source packs?  This
is all presuming that I had a working compiler on the Alpha.  I know
that assembly is architecture dependent, but I am under the impression
that (properly written) high level languages such as C, C++, Ada95, etc
don't give a rat's patoot what CPU they run on.

Have I got the right idea, or am I just totally hosed here?
 --
Mike Werner  KA8YSD           |  "Where do you want to go today?"
ICQ# 12934898                 |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |

 -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GU d-@ s:+ a- C++>$ UL++ P+ L+++ E W++ N++ !o w--- O- !M V-- PS+ PE+
 Y+ R+ !tv b+++(++++) DI+ D--- G e*>++ h! r++ y++++
 ------END GEEK CODE BLOCK------

Reply via email to