Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson 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> <87wmgsmme0.fsf@nosuchdomain.example.com> 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 writes: > On 24/11/2024 21:01, Keith Thompson wrote: >> Bart 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 */