Sujet : Re: else ladders practice
De : antispam (at) *nospam* fricas.org (Waldek Hebisch)
Groupes : comp.lang.cDate : 24. Nov 2024, 22:45:39
Autres entêtes
Organisation : To protect and to server
Message-ID : <vi06q1$apok$2@paganini.bofh.team>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
Keith Thompson <Keith.S.Thompson+
u@gmail.com> 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 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