• Please review our updated Terms and Rules here

Compiling Doom: DJGPP vs Watcom

Frenkel

Member
Joined
Jan 1, 2022
Messages
46
Which compiler produces the fastest Doom code? DJGPP or Watcom?

It took Chi Hoang 4-5 hours to port Linux Doom to DOS in 1997.
It took me about a week to port gamesrc-ver-recreation from Watcom to DJGPP.

All the assembly code is replaced by C code. There's no sound, no joystick and no Logitech Cyberman support.

The results are similar in DOSBox:

There isn't much assembly code in Doom: 4 drawing routines, 1 for multiplications, 1 for divisions and 1 for joystick support. But sure do they count.
 
DJGPP vs Watcom vs
Digital Mars vs CC386:


Are there any other C compilers that can produce 32-bit DOS code that have been updated this millennium?
 
OrangeC used to have DOS support, not sure if it still does.
 
The name of the compile script for CC386 is compoc.bat, with oc standing for OrangeC, because it was my intention to replace CC386 by OrangeC.

I've tried OrangeC for a short while. That didn't go well, so I went with their previous compiler, CC386.
I thought if I get that working, it would be easy to upgrade to OrangeC.
I was wrong.
I've spend all day trying like 16 of the 26 releases that are available on GitHub, but all I get are strange crashes.
 
The developer of OrangeC said in 2019: "yeah i'm always wanting to get rid of DOS anyway lol!" and "guess I let it go too long without regression testing."
 
Back
Top