On Wed, 23 Jan 2002 23:15:38 -0500 (EST), Steve <[EMAIL PROTECTED]> wrote:

> On Wed, 23 Jan 2002 [EMAIL PROTECTED] wrote:

>> 2.  If you have the C source code for a very small DOS program, such as
>> for the "Hello World" program, for example, can it be very easily
>> modified and re-compiled on a special compiler designed for Linux so
>> that it would run in BasicLinux?  Would any modification of the
>> source code be required if the source code meets all of the ANSI C
>> standards?

> The advantage of C is that it's cross-platform.
> A C program isn't inherently "DOS" or Linux, or
> even x86, PPC, sparc, or 68xxx.
> Sure, take your "Hello World" source, compile it
> with Linux gcc, and it runs in Linux.  Compile it on a
> Commodore 64 compiler and it runs on the Commodore.

> Ideally, all C that can be compiled on one platform
> would be able to be compiled without change on all
> platforms.  That isn't quite the case, hence the need
> to "port" from one platform to another.

> - Steve

Does that make C an operating system?
Abt 20 years ago computers like Sinclair and MSX had BASIC for their OS.

Would it be possible to re-compile DOS and other OS's (even windows?) to
C, BASIC or whatever higher programming language?
Or machine specific 'mnemonics'?

Bastiaan
-- Arachne V1.61, NON-COMMERCIAL copy, http://arachne.cz/

Reply via email to