roytam 03.01.2022, 09:44 |
FreeDOS/FreeCOM: which compiler produces smallest binary? (Developers) |
Since FreeDOS kernel and/or FreeCOM supports different C compilers, I wonder if there is a comparison for those compilers for compiling FreeDOS/FreeCOM? |
Guti 03.01.2022, 15:34 @ roytam |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> Since FreeDOS kernel and/or FreeCOM supports different C compilers, I --- |
tom Germany (West), 03.01.2022, 16:10 @ roytam |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> Since FreeDOS kernel and/or FreeCOM supports different C compilers, I |
glennmcc North Jackson, Ohio (USA), 03.01.2022, 17:58 @ tom |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > Since FreeDOS kernel and/or FreeCOM supports different C compilers, I --- |
roytam 04.01.2022, 03:50 @ glennmcc |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > > Since FreeDOS kernel and/or FreeCOM supports different C compilers, I |
RayeR CZ, 04.01.2022, 05:38 @ glennmcc |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> However, now that storage space is 'dirt cheap'... file size is pretty-much --- |
marcov 04.01.2022, 11:04 @ RayeR |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> Except embedded. In my ROMOS I had to fit FD kernel inside less than 64kB |
Ringding 04.01.2022, 12:13 @ glennmcc |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
For DOS, it’s irrelevant how much it costs. The amount of available memory is fixed, and every byte that’s consumed by the system is one byte less that’s available for user programs. |
bretjohn Rio Rancho, NM, 04.01.2022, 18:12 @ Ringding |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
There are three different things being talked about here: size on disk, size in memory, and speed. While those are all interrelated, they are somewhat independent. In general, small disk size = small memory size = faster, but that is not ALWAYS true. There is a fourth category to add to the list also, which is maintainability. All of those things matter to different degrees for different situations (e.g., there are still floppy distributions being made for FreeDOS where size on disk matters A LOT. |
marcov 04.01.2022, 23:21 @ tom |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> smallest code usually Watcom, gcc similar, Turbo ~15% larger. |
tom Germany (West), 04.01.2022, 23:55 @ marcov |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > smallest code usually Watcom, gcc similar, Turbo ~15% larger. |
RayeR CZ, 06.01.2022, 03:27 @ marcov |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> Strange btw that a 32-bit compiler (gcc) generates smaller code than a --- |
Oso2k 06.01.2022, 04:27 @ RayeR |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > Strange btw that a 32-bit compiler (gcc) generates smaller code than a |
tkchia 06.01.2022, 14:29 @ Oso2k |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
Hello Oso2k, --- |
RayeR CZ, 07.01.2022, 04:33 @ tkchia |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
OK, and is FreeDOS kernel source ready to compile with it out of the box or do I need mess with alternate makefile? I guess it use GNU make that is not compatible with BC/WC makefiles from FD... --- |
roytam 07.01.2022, 15:30 @ RayeR |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> OK, and is FreeDOS kernel source ready to compile with it out of the box or |
RayeR CZ, 07.01.2022, 18:56 @ roytam |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> it works in cross-compile from linux, but DJGPP make + precompiled i16gcc --- |
andrewbird Cornwall, UK, 07.01.2022, 19:38 @ RayeR |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > it works in cross-compile from linux, but DJGPP make + precompiled |
tom Germany (West), 08.01.2022, 22:33 @ RayeR |
FreeDOS/FreeCOM: which compiler produces smallest binary? |
> > it works in cross-compile from linux, but DJGPP make + precompiled |