Sujet : Re: else ladders practice
De : bc (at) *nospam* freeuk.com (Bart)
Groupes : comp.lang.cDate : 25. Nov 2024, 01:19:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vi0fq2$2el9e$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
On 24/11/2024 22:21, Waldek Hebisch wrote:
Bart <bc@freeuk.com> wrote:
With clang, it is easier: apparently everything needed to do the above,
other than header files, is contained with a 120MB executable clang.exe.
Probably you means things needed to run the compiler. clang compiled
executable need libraries too, on Debian this is shared with gcc.
No, this was a standalone 119MB clang.exe. I had to give it a tweaked hello.c without stdio.h, and it produced only hello.s.
My cc.exe is 1/400th the size (99.75% smaller) and it can convert hello.c (/with/ stdio.h) to hello.exe, or any of half-dozen options within the same package (eg. interpret or run).
(cc.exe concentrates on single-file programs. To compile multi-module programs, it needs a 200-line script, and an extra 0.1MB utility, an assembler-linker. Then outputs are limited to EXE/DLL/OBJ/MX.
Most of my needs for a C compiler however are for programs contained within one file.)