Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

FreeDOS/FreeCOM: which compiler produces smallest binary? (Developers)

posted by tom Homepage, Germany (West), 03.01.2022, 16:10

> Since FreeDOS kernel and/or FreeCOM supports different C compilers, I
> wonder if there is a comparison for those compilers for compiling
> FreeDOS/FreeCOM?

smallest code usually Watcom, gcc similar, Turbo ~15% larger.

however UPX compresses Turbo code better, so often the binary is smaller.

of course this depends a lot on

a) the amount of runtime library pulled in by your code
b) the memory model
c) CPU type
d) calling conventions
e) the kind of code that you wrote (watcom optimizer optimizes much better then turbo)

so you have to do your own experiments.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 177 users online (0 registered, 177 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum