Re: Open Source C (maybe ++ type) compiler for both Linux an…

Top Pagina
Bijlagen:
Bericht als e-mail
+ (text/plain)
Delete this message
Reply to this message
Auteur: Bart Garst
Datum:  
Aan: PLUG Discuss
Nieuwe Onderwerpen: Re: Open Source C (maybe ++ type) compiler for both Linux andWindows
Onderwerp: Re: Open Source C (maybe ++ type) compiler for both Linux and Windows
On Thu, 2004-03-18 at 09:03, George Gambill wrote:
> Is there an Open Source (GPL) C or C++ type compiler such that programs created on either Linux or Windows will run on the other.
>


Depends on what you mean by 'created'.

I can write a program on linux, compile it on linux, and it will run on
linux. The compiled program will not run on windows though.

However, I can take my source code and compile it on windows and it will
run on windows. That compiled executable will not run on linux.

So, you can write 'portable' code, meaning it will compile and run on
both linux & windows, but you cannot compile on one and run on the
other.


There are exceptions, like compiling on linux and running on palm using
a crosscompiler. I don't believe there is a crosscompiler that will do
windows->linux or linux->windows.

Does this answer your question?

Bart

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss