Hi, On Mon, Jul 20, 2026 at 1:57 PM Bernd Böckmann via Freedos-devel <[email protected]> wrote: > > I did some comparison regarding the speed of generated code for several > C compilers, namely IA16-GCC, Open Watcom 2 BETA 1 (the "original" from > openwatcom.org) and Turbo C++ 1.01. > > I used my "computation heavy" sha3sum [1] utility to time how long it > takes to calculate the SHA3 sum of the FreeDOS 1.4 live CD KERNEL.SYS. > The results are for DosBox running at 3000 cycles/ms (measured by > stopwatch so somewhat inaccurate):
Interesting to see! > The compiler flags were: > > IA16-GCC: -mcmodel=small -mnewlib-nano-stdio -mtune=i8088 -Os Why -Os and not -O2 -finline-functions? > Watcom: -ox -ms What is the one for inline? -oh? And extra optimizations? -oe? > Turbo C++: -G It's so old, but it has limited C++ support. If you can compile as C++, you can use "inline", which honestly may give a speed advantage. But yes, IA-16 is pretty fast output and nice. _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
