FreeDOS/FreeCOM: which compiler produces smallest binary? (Developers)
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:
- FreeDOS/FreeCOM: which compiler produces smallest binary? - roytam, 03.01.2022, 09:44 (Developers)
- FreeDOS/FreeCOM: which compiler produces smallest binary? - Guti, 03.01.2022, 15:34
- FreeDOS/FreeCOM: which compiler produces smallest binary? - tom, 03.01.2022, 16:10
- FreeDOS/FreeCOM: which compiler produces smallest binary? - glennmcc, 03.01.2022, 17:58
- FreeDOS/FreeCOM: which compiler produces smallest binary? - roytam, 04.01.2022, 03:50
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 04.01.2022, 05:38
- FreeDOS/FreeCOM: which compiler produces smallest binary? - marcov, 04.01.2022, 11:04
- FreeDOS/FreeCOM: which compiler produces smallest binary? - Ringding, 04.01.2022, 12:13
- FreeDOS/FreeCOM: which compiler produces smallest binary? - bretjohn, 04.01.2022, 18:12
- FreeDOS/FreeCOM: which compiler produces smallest binary? - marcov, 04.01.2022, 23:21
- FreeDOS/FreeCOM: which compiler produces smallest binary? - tom, 04.01.2022, 23:55
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 06.01.2022, 03:27
- FreeDOS/FreeCOM: which compiler produces smallest binary? - Oso2k, 06.01.2022, 04:27
- FreeDOS/FreeCOM: which compiler produces smallest binary? - tkchia, 06.01.2022, 14:29
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 07.01.2022, 04:33
- FreeDOS/FreeCOM: which compiler produces smallest binary? - roytam, 07.01.2022, 15:30
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 07.01.2022, 18:56
- FreeDOS/FreeCOM: which compiler produces smallest binary? - andrewbird, 07.01.2022, 19:38
- FreeDOS/FreeCOM: which compiler produces smallest binary? - tom, 08.01.2022, 22:33
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 07.01.2022, 18:56
- FreeDOS/FreeCOM: which compiler produces smallest binary? - roytam, 07.01.2022, 15:30
- FreeDOS/FreeCOM: which compiler produces smallest binary? - RayeR, 07.01.2022, 04:33
- FreeDOS/FreeCOM: which compiler produces smallest binary? - tkchia, 06.01.2022, 14:29
- FreeDOS/FreeCOM: which compiler produces smallest binary? - Oso2k, 06.01.2022, 04:27
- FreeDOS/FreeCOM: which compiler produces smallest binary? - glennmcc, 03.01.2022, 17:58