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
