Go to file
2024-07-02 07:18:39 -07:00
Borland Turbo BASIC v11 Borland Turbo Basic v1.1 2024-07-01 15:32:03 -07:00
Borland Turbo C v1 add benchmark 2024-07-01 13:09:44 -07:00
Borland Turbo C v2 remove broken large model build 2024-07-02 06:25:21 -07:00
Borland turbo pascal v3 add turbo pascal v3 patch app 2024-07-01 12:43:29 -07:00
Borland Turbo Pascal v1 Turbo Pascal v2 + cleanup 2024-06-30 15:28:49 -07:00
Borland Turbo Pascal v2 Turbo Pascal v2 + cleanup 2024-06-30 15:28:49 -07:00
Borland Turbo Pascal v4 borland turbo pascal v4 2024-07-01 21:08:56 -07:00
Borland Turbo Pascal v5 Borland Turbo Pascal v5 2024-07-02 06:16:37 -07:00
Borland Turbo Pascal v6 Borland Turbo Pascal v6 2024-07-02 07:11:05 -07:00
Borland Turbo Pascal v55 Borland Turbo Pascal v5.5 2024-07-02 06:49:04 -07:00
DeSmet C88 v24 build fix 2024-06-30 14:25:50 -07:00
DeSmet C88 v31b DeSmet C88 v3.1b 2024-07-01 21:14:12 -07:00
Digital Research CB-86 v2 Digital Research CB-86 v2.0 2024-06-30 11:56:20 -07:00
Digital Research MT+86 Pascal v311 dr mt+86 pascal v3.1.1 2024-06-30 11:44:12 -07:00
Digital Research PLI-86 v1 missing object 2024-06-30 13:57:01 -07:00
Intel iC-86 Compiler v4.5 Intel iC-86 Compiler v4.5 2024-07-02 07:18:39 -07:00
Logitech Modula-2 v1 Logitech Modula-2 v1.00 2024-06-30 15:16:10 -07:00
Logitech Modula-2 v1.1 Logitech Modula-2 v1.10 2024-06-30 15:43:04 -07:00
Manx Aztec C86 v42b Manx Aztec C86 v4.2b 2024-07-02 07:07:59 -07:00
Manx Aztec C86 v340a no stdlib.h in this version 2024-07-01 06:47:20 -07:00
Mark Williams MWC v4 Mark Williams C v4.0.12 2024-07-01 16:08:53 -07:00
Mark Williams MWC v311 need tmp folder 2024-07-01 06:17:31 -07:00
Microsoft BASIC Compiler v5.36 link can't have long filenames 2024-06-30 14:06:09 -07:00
Microsoft c v3 microsoft c v3 2024-07-01 05:49:38 -07:00
Microsoft C v1 to build 2024-06-30 14:10:25 -07:00
Microsoft C v4 turn off logging 2024-07-01 10:51:19 -07:00
Microsoft C v5 build fix for spaces in path names 2024-07-02 06:12:56 -07:00
Microsoft C v203 build fix 2024-06-30 14:12:04 -07:00
Microsoft Cobol v5 add a pointer 2024-06-30 15:38:57 -07:00
Microsoft Fortran v5 Microsoft Fortran v5.0 2024-07-02 07:02:04 -07:00
Microsoft Fortran v331 microsoft fortran v3.31 2024-07-01 06:00:10 -07:00
Microsoft GW-BASIC v322 GW-BASIC v3.22 2024-07-01 15:48:45 -07:00
Microsoft MASM v5 masm v5 2024-06-30 06:49:30 -07:00
Microsoft Pascal v1 remove warning 2024-07-01 07:49:55 -07:00
Microsoft Pascal v3.31 remove warning 2024-07-01 07:49:55 -07:00
Microsoft Pascal v4 microsoft pascal v4 2024-07-01 21:27:27 -07:00
Microsoft QuickBASIC v1 microsoft quickbasic v1 2024-07-01 06:02:54 -07:00
Microsoft QuickBASIC v3 make clear there is no command line build 2024-07-01 13:05:38 -07:00
Microsoft QuickBASIC v4 microsoft quickbasic v4 2024-07-01 16:13:22 -07:00
Microsoft QuickBASIC v45 microsoft quickbasic v4.5 2024-07-01 21:19:24 -07:00
Microsoft QuickBASIC v200 make clear there is no command line build 2024-07-01 13:05:38 -07:00
Microsoft QuickC v1 fix for spaces in path names 2024-07-01 15:58:49 -07:00
Microsoft QuickC v2 Microsoft QuickC v2 2024-07-02 06:32:02 -07:00
Microsoft QuickPascal v1 Microsoft QuickPascal 2024-07-02 06:52:31 -07:00
Mix C v202 fix typos 2024-07-01 15:23:54 -07:00
Mix Power C v1 Mix Power C v1 2024-07-01 15:26:34 -07:00
LICENSE Initial commit 2024-06-30 06:33:18 -07:00
README.md Update README.md 2024-06-30 08:09:14 -07:00

dos_compilers

MS-DOS compilers, assemblers, and interpreters

The license for this repo applies to code I wrote for this repo including versions of the sieve, e, ttt, and tm benchmarks and the build scripts to invoke the tools. The various DOS tools and documentation each have their own respective license terms. In a few cases I used the sieve benchmark that shipped with the tools, so obviously those copies fall under the license of the respective tool.

I do not own licensing for any of these tools. This repo is simply an aggregation of the tools to ease testing of my NTVDM DOS 3.3 emulator.

In some cases where required I've copied an assembler or linker that did not ship with a given compiler into folders so binaries can be produced. These tools belong to their respective owners.

These tools are available for download from many sites on the internet. They are often in forms that make their extraction and/or use difficult. This repo simplifies the process.

If you own the copyright to any of these tools and want me to take them down, please let me know and I'll do so ASAP. It's not my intention to pirate anyone's software.

I cannot vouch that any of these tools matches their official distribution form. Many of these were apparently taken from snapshots on peoples' machines through the years and include changes, files, and/or configuration not found in a pristine distribution.

In some cases I've included user manuals in PDF form that I've found online for the various compilers. They sometimes match the version and sometimes not, but they are always helpful.

I can vouch that the m.bat script in each folder builds working benchmark binaries. In the cases of tools that can't be invoked via the command-line (e.g. Turbo Pascal), those tools also produce working benchmark binaries.

It is my intention to show each tool in its best light with respect to the benchmarks. If you know of better optimization flags or ways to improve the benchmark source code for a given tool, please feel free to submit a pull request or open an issue. That said, I want to avoid cheap hacks like using peek/poke in BASIC instead of local variables.

The benchmarks include:

  • sieve: The classic from BYTE Magazine that counts prime numbers.
  • e: Computes the irrational number e to 192 digits.
  • ttt: proves you can't win at tic-tac-toe if the opponent is competent
  • tm: test malloc. This calls malloc/calloc/free in the C runtime to measure performance. It's C only and many compilers can't run it.

To run the compilers on Windows, use the m.bat script in each folder, e.g.:

  • m sieve
  • m e
  • m ttt

To run the resulting apps, use NTVDM's -c flag to force console mode and -p flag to show performance information. The interpreters have other modes for running; see their respective m.bat files for details.

  • ntvdm -c -p sieve
  • ntvdm -c -p e
  • ntvdm -c -p ttt

The Borland Pascal (v1 through v3) and BASIC products don't support command-line builds, so you have to run the apps, load the source file, and build manually.

On Linux or MacOS copy m.bat to m.sh, change % to $, use dos2unix to remove CR/LF, change REM comments to #, and chmod to enable execution. (If you do this, feel free to submit a pull request.) Also be sure to put ntvdm in your path.

If you're running Linux or MacOS and see perplexing compilation errors, it could be your source files don't have cr/lf line separators. Use unix2dos to add them; nearly all these compilers require them. Some compilers require a ^Z / 0x1a at the end of files. CB86 is an example. Again, if you see build errors this may be the problem.

Here are runtimes for the benchmarks in milliseconds for a 4.77Mhz 8086 (not 8088) as emulated by NTVDM

runtimes