Path: ...!news.mixmin.net!sewer!alphared!2.eu.feeder.erje.net!feeder.erje.net!newsfeed.bofh.team!paganini.bofh.team!not-for-mail From: antispam@fricas.org (Waldek Hebisch) Newsgroups: comp.lang.c Subject: Re: else ladders practice Date: Sun, 24 Nov 2024 21:45:39 -0000 (UTC) Organization: To protect and to server Message-ID: References: <3deb64c5b0ee344acd9fbaea1002baf7302c1e8f@i2pn2.org> <87wmgsmme0.fsf@nosuchdomain.example.com> Injection-Date: Sun, 24 Nov 2024 21:45:39 -0000 (UTC) Injection-Info: paganini.bofh.team; logging-data="354068"; posting-host="WwiNTD3IIceGeoS5hCc4+A.user.paganini.bofh.team"; mail-complaints-to="usenet@bofh.team"; posting-account="9dIQLXBM7WM9KzA+yjdR4A"; User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.9.3 Bytes: 2643 Lines: 32 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 is much larger than what I got. On Debian 12.7 I used '--disable-multilib --enable-languages=c,c++,objc,obj-c++,fortran,ada,m2,go'. IIRC it was something like 2.4G originally and 1012176k after striping. AFAICS with earlier versions ARM compiler was much bigger than x86_64 one, mainly because ARM had libraries for several variants of the architecture. Header files are not that big (but still several megabytes), but libraries seem to be quite large (I did not check, but it is possible that libraries still contain debug info). -- Waldek Hebisch