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 tkchia Homepage, 06.01.2022, 14:29

Hello Oso2k,

> 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

Not exactly. Mainline GCC's -m16 flag will output code that requires an 80386 or above. The code will essentially be 32-bit code — with 32-bit registers etc. — except that it runs in 16-bit real/protected/V86 mode.

gcc-ia16 in contrast will output code that can run on an 8086, 80186, or 80286.

Thank you!

---
https://gitlab.com/tkchia · https://codeberg.org/tkchia · 😴 "MOV AX,0D500H+CMOS_REG_D+NMI"

 

Complete thread:

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