Reputation: 2215
Where can I get BASIC and C/C++ Compilers for MS-DOS?
Upvotes: 0
Views: 1109
Reputation: 77
You can't go wrong with DJGPP (best C++ support, LFNs) or OpenWatcom (multi-platform, also supports 16-bit). For BASIC, try FreeBASIC (which uses DJGPP's libc, assembler, linker but has its own compiler frontend). http://www.freebasic.net
Upvotes: 0
Reputation: 340168
Free (though not necessarily open source) Compilers that target MS-DOS (generally 32-bit but some may also still target 16-bit):
If C alone (without C++ support) is interesting to you, there's also these (I honestly have no idea how well these things might work on modern systems compiling modern source code - actually it's been so long since I've done anything in or for DOS that I don't know how well the 3 compilers above work for MS-DOS either)
Upvotes: 7
Reputation: 96119
http://www.digitalmars.com/ is what was once Zortech, the original 32bit flat memory model DOS compiler.
You can also use GCC either under cygwin or mingw.
The last MSVC to build DOS executables was IIRC 1.52 it's a free download if you have MSDN.
Upvotes: 2
Reputation: 2340
If you're on Windows 95 or later you can use the Cygwin version of gcc. It won't give you a basic compiler though.
Upvotes: 1