Deutsch   English   Français   Italiano  
<vi0fq2$2el9e$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bart <bc@freeuk.com>
Newsgroups: comp.lang.c
Subject: Re: else ladders practice
Date: Mon, 25 Nov 2024 00:19:14 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vi0fq2$2el9e$2@dont-email.me>
References: <3deb64c5b0ee344acd9fbaea1002baf7302c1e8f@i2pn2.org>
 <vhje8l$2412p$1@dont-email.me> <WGl%O.42744$LlWc.33050@fx42.iad>
 <vhkr9e$4bje$1@dont-email.me> <vhptmn$3mlgf$1@paganini.bofh.team>
 <vhq6b4$17hkq$1@dont-email.me> <vhqm3l$3ntp7$1@paganini.bofh.team>
 <vhso61$1o2of$1@dont-email.me> <vhtrns$71ic$1@paganini.bofh.team>
 <vhtvvc$1ukc7$1@dont-email.me> <vhuc2j$7s5i$1@paganini.bofh.team>
 <vhv5m4$27sco$1@dont-email.me> <87wmgsmme0.fsf@nosuchdomain.example.com>
 <vi03n5$2c7jl$1@dont-email.me> <vi08u5$av3b$1@paganini.bofh.team>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 25 Nov 2024 01:19:15 +0100 (CET)
Injection-Info: dont-email.me; posting-host="c80a36c81a7479915291e305ba49d1d4";
	logging-data="2577710"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19+9RvxE7sGBIRlftyggMGJ"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ijP3F07lkR4kYGqPpe+hvKR14Cw=
In-Reply-To: <vi08u5$av3b$1@paganini.bofh.team>
Content-Language: en-GB
Bytes: 2508

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.)