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 roytam, 04.01.2022, 03:50

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

totally agreed, and this is what I really asked for originally.

 

Complete thread:

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