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 Oso2k, 06.01.2022, 04:27

> > Strange btw that a 32-bit compiler (gcc) generates smaller code than a
> > 16-bit compiler (turbo).
>
> I think it's meant GCC IA-16
> https://github.com/tkchia/build-ia16/releases
> that is probably better optimized for 16b targets...
> BTW I didn't know that FD kernel can be compiled with it, are there
> prepared makefiles for it in FDK package?

A regular gcc can also produce 16 bit COM file if you know the right flags and linker inputs. However Tk Chia’s work does that more naturally with a bunch of support code for libc, memory models, and other things one would expect from a 16 bit DOS compiler.


https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html

https://nullprogram.com/blog/2014/12/09/

 

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