>
> 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------
>
Yes in theory it should, most gnu will compile on everything from solaris
to linux to irix and so forth. That is what (the way I understand it) the
whole deal about posix is about, makeing system calls act the same in all
unicies, then again I sometimes understand things wrong. Once in a while
you'll run across a program that compile fine under linux but doesn't go
so clean under a solaris server without some tweaking on the users part.
This is only with c and c++ I know about, not to say that there is other
launges that can/can't, I just haven't had any expreince with them. Like
they say forget about it, it will work ;)