🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #23

Re: Taming The Switch-Statement

#23
From: David Brown
Date: Wed, 07 Oct 2026 10:57
36 lines
3238 bytes
On 07/10/2026 12:39, bart wrote:
> On 07/10/2026 07:28, Lawrence D’Oliveiro wrote:
>> On Wed, 7 Oct 2026 04:19:45 -0000 (UTC), Waldek Hebisch wrote:
>>
>>> Concerning "amazing", relative to machine speed such compile speeds
>>> were available in the past. But most of old language tools vanished
>>> and surviving ones got relatively slower.
>>
>> The Linux kernel is currently up to about 38 million lines of code,
>> last I heard. How long do you think it would take to compile all that?
>> On a reasonably grunty machine, of course, but *without* resorting to
>> a RAM disk?
> 
> On x64 that would equate to roughly a 400MB binary. That is quite a 
> hefty 'kernel'!
> 
> Or maybe only some of that code will be compiled for any particular 
> target. I heard of a figure around 5% which would make it 2Mloc.
> 

The kernel on my system is about 15 MB.  Sizes vary by version and build 
details, of course, but that's roughly the size.

Some of the code in the kernel is target specific and therefore not used 
on most targets.  But a very large proportion is typically compiled to 
modules rather than linked directly in the kernel, and many of the 
modules are not even built in most cases.  I have no idea of the exact 
proportions.

> I don't know if it still has to trawl through the other 95% to extract 
> it, or it is organised more sensibly.
> 

It is organised sensibly.

Technical Details
Message-ID: <11a58ie$2osq7$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <119qf6l$2rmg3$1@dont-email.me> <119rau4$35ugq$1@dont-email.me> <119uo2c$3kc0t$1@paganini.bofh.team> <119uqnv$d6j2$1@dont-email.me> <20261005143559.157@kylheku.com> <11a1arj$1e8ks$1@dont-email.me> <11a295r$1lqal$3@dont-email.me> <11a2e2m$ef4o$2@dont-email.me> <11a2j83$1qu9n$1@dont-email.me> <11a2maf$1soc7$1@dont-email.me> <11a2vrn$20jj3$1@dont-email.me> <EI7xS.906$aNSb.21@fx20.iad> <11a37gv$23ruj$1@dont-email.me> <11a3vcj$88e7$1@paganini.bofh.team> <11a43hl$2e5k2$1@dont-email.me> <11a4h8v$eeb8$1@paganini.bofh.team> <11a4oph$2jpr4$2@dont-email.me> <11a57ho$2pfdl$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: David Brown <david.brown@hesbynett.no>
Newsgroups: comp.lang.c
Subject: Re: Taming The Switch-Statement
Date: Wed, 7 Oct 2026 12:57:18 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <11a58ie$2osq7$1@dont-email.me>
References: <119qf6l$2rmg3$1@dont-email.me> <119rau4$35ugq$1@dont-email.me>
 <119uo2c$3kc0t$1@paganini.bofh.team> <119uqnv$d6j2$1@dont-email.me>
 <20261005143559.157@kylheku.com> <11a1arj$1e8ks$1@dont-email.me>
 <11a295r$1lqal$3@dont-email.me> <11a2e2m$ef4o$2@dont-email.me>
 <11a2j83$1qu9n$1@dont-email.me> <11a2maf$1soc7$1@dont-email.me>
 <11a2vrn$20jj3$1@dont-email.me> <EI7xS.906$aNSb.21@fx20.iad>
 <11a37gv$23ruj$1@dont-email.me> <11a3vcj$88e7$1@paganini.bofh.team>
 <11a43hl$2e5k2$1@dont-email.me> <11a4h8v$eeb8$1@paganini.bofh.team>
 <11a4oph$2jpr4$2@dont-email.me> <11a57ho$2pfdl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 07 Oct 2026 10:57:19 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2913095"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+RR4SRfNow/KiUgrzoTF6gBg4K3z6MpkU="; posting-host="fd0a1bf01e024f2af36d0493face3db6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6axPP5gimXOwZdMt6syXDod+++8= sha256:HgWOp5GW2RFU9abjJW8fNC2NEZqj9f9/eV7Ox2fSsNA=
	sha1:T60X+m7fmf1mL41ADOIHhSJVQXI= sha256:BqgEyMVWM+pB9KS6ECh9KieXIOCcUrmHiWcsxL2bBsw=
In-Reply-To: <11a57ho$2pfdl$1@dont-email.me>
Content-Language: en-GB, nb-NO