Search code examples
cturbo-c

Alternative to Turbo C


My university is hosting a Programming Competition, and have decided to support Turbo C (the 16-bit DOS version) as a valid programming environment. I have just read that PC^2, the software that is going to be used to auto-judge the competition, does not support 16-bit programs.

So, is there any alternative to Turbo C that I can use. I need the same header files, and the compiler would need to support all the outdated C standards that Turbo C supports. But the output needs to be 32-bit. Is there any compiler that can satisfy these conditions?


Solution

  • Portable C programs can be written in many different free compilers and non-free compilers.

    For compatibility, you can't go wrong with gcc on Linux machines. If it doesn't work with GCC, you probably have a problem.

    In Windows, the Microsoft C compiler is generally considered acceptable, but if you use MS Visual Studio (most schools have an installation) then you need to be very careful to ensure that you are compiling as ANSI-C, rather than later versions of C or even C++. When I used to teach, students used to miss that option, leading to problems with automated tests. Here are some instructions on how to do this with Visual Studio 2005, you can find similar features in later versions.