Deutsch   English   Français   Italiano  
<877c8rmfzt.fsf@nosuchdomain.example.com>

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

Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: else ladders practice
Date: Mon, 25 Nov 2024 08:32:06 -0800
Organization: None to speak of
Lines: 37
Message-ID: <877c8rmfzt.fsf@nosuchdomain.example.com>
References: <3deb64c5b0ee344acd9fbaea1002baf7302c1e8f@i2pn2.org>
	<vhgr1v$2ovnd$1@paganini.bofh.team> <vhic66$1thk0$1@dont-email.me>
	<vhins8$1vuvp$1@dont-email.me> <vhj7nc$2svjh$1@paganini.bofh.team>
	<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>
	<vi1p8c$2ocju$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 25 Nov 2024 17:32:06 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b40b20f4d5912db9f2a914577ca2f33c";
	logging-data="3004603"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19VghnKYaKiBDptlAY4/A4H"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:6kkfYKLb9Vc/RaUbYsN5MgGboOw=
	sha1:g0uDJN+Nc2wl6lrsDrYjG9o1I+U=
Bytes: 3102

David Brown <david.brown@hesbynett.no> writes:
> On 24/11/2024 21:01, Keith Thompson wrote:
>> Bart <bc@freeuk.com> writes:
>> [...]
>>> Most of a gcc installation is hundreds of header and archive (.a)
>>> files for various libraries. There might be 32-bit and 64-bit
>>> versions. I understand that. But it also makes it hard to isolate the
>>> core compiler.
>> [...]
>> That doesn't agree with my observations.
>> Of course most of the headers and libraries are not part of gcc
>> itself.
>> As usual, you refer to the entire implementation as "gcc".
>> I've built gcc 14.2.0 and glibc 2.40 from source on Ubuntu 22.04.5,
>> installing each into a new directory.
>> The gcc installation is about 5.6 GB, reduced to about 1.9 GB if I
>> strip the executables.
>
> That sounds like a /very/ large size.  A quick check of the pre-build
> Debian package for gcc-14 is about 90 MB installed.  (That is for the
> C compiler - not binutils, or libraries.)  C++ adds another 50% to
> that. Are you including the build directories with all the object
> files too?

It is very large, partly because the executables are not stripped
(that's the default when building from source), and partly because I
configured it for multiple languages.  No cross-compilers.

No, I'm not including the build directories, just the directory
specified with "./configure --prefix=...".

I might try doing a stripped installation for C only, just to see how
big it is.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */