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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Chris Gehlker
Date:  
To: plug-discuss
Subject: Re: Open Source C (maybe ++ type) compiler for both Linux and Windows

On Mar 18, 2004, at 9:03 AM, 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.


This depends entirely on what you mean by "programs created on either
Linux or Windows will run on the other." GCC is a cross compiler so you
can specify the target Processor/OS combination and it doesn't have to
be the same as the combination you are running on. On the other hand,
there is simply no way (ignoring fat binaries which will take us far
afield) that you can specify one binary for multiple targets.

Note that 'Ljnux' is not a single target. There is no such thing as a
single binary that will run everywhere Linux runs.

Now I have to ask, given that this is a Linux list, why can't you
simply distribute the source?

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