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 glennmcc Homepage E-mail, North Jackson, Ohio (USA), 03.01.2022, 17:58

> > 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.

IMO,

Way back when storage space was very expensive, file size was quite important.

However, now that storage space is 'dirt cheap'... file size is pretty-much irrelevant.

It's the actual efficiency of operation of the resulting binary that matters most.
(speed, memory usage, etc...)

In the early 1990's I bought a 250meg HDD for $300
(1TB would have required 4,000 of those at a total cost of $1,200,000)

A year ago I bought a 1TB USB HDD for $28

---
--
http://glennmcc.org/

 

Complete thread:

Back to the forum
Board view  Mix view
22749 Postings in 2119 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum