开发者

Compilers for DOS32?

开发者 https://www.devze.com 2022-12-13 09:17 出处:网络
Where can I get BASI开发者_开发百科C and C/C++ Compilers for MS-DOS?There\'s DJGPP for C/C++. http://www.delorie.com/djgpp/Free (though not necessarily open source) Compilers that target MS-DOS (gene

Where can I get BASI开发者_开发百科C and C/C++ Compilers for MS-DOS?


There's DJGPP for C/C++.

http://www.delorie.com/djgpp/


Free (though not necessarily open source) Compilers that target MS-DOS (generally 32-bit but some may also still target 16-bit):

  • Digital Mars 16 and 32 bit
  • DJ Delorie's DJGPP version of GCC for DOS32 32 bit only
  • Open Watcom 16 and 32 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)

  • DeSmet C 16 bit only
  • Turbo C 2.01 16 bit only


Turbo C can compile c/c++


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.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消