From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5392,2e448087d7e47246,start X-Google-Attributes: gidf5392,public X-Google-Thread: 10f8a1,b0b9a5eaad4ab6eb X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,b0b9a5eaad4ab6eb X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,b0b9a5eaad4ab6eb X-Google-Attributes: gid110292,public From: Przemek Klosowski Subject: Re: Wildfire and NT Date: 1998/03/02 Message-ID: <547m6dkqxz.fsf@rrdjazz.nist.gov>#1/1 X-Deja-AN: 330048426 References: <6csl81$rb9@news-rocq.inria.fr> <6d71l7$p18$2@news2.acs.oakland.edu> Organization: NIST Newsgroups: comp.sys.dec,vmsnet.alpha,comp.arch,comp.sys.intel,comp.os.linux.development.system Joel Gallun writes: > phkahler@oakland.edu (Paul Kahler) writes: > > > The linux kernel was written by talented programmers. It's the 300,000 > > line program that got written in 30,000 :-) > > /usr/src/linux> (find . -name '*.[chSs]' -exec cat {} \;)|wc -l > 815720 > > Looks like you are off by an order of magnitude. Linux 2.0.33 That isn't a fair metric; it counts all architectures, and all possible drivers. I propose this: /usr/src/linux> for a in arch/* [b-z]* ; do echo -n $a ; (find $a -name '*.[chSs]' -exec cat {} \;)|wc -l ; done to obtain the followint result (2.0.32) arch/alpha 12062 arch/i386 29414 arch/m68k 59494 arch/mips 7705 arch/ppc 10939 arch/sparc 21771 drivers 446492 fs 68177 include 43496 init 1078 ipc 2405 kernel 7282 lib 1829 mm 7051 net 56845 scripts 5359 So, we see that the majority of code is in hardware drivers, with significant chunks in handling foreign filesystems (18 are supported by Linux!---win(4)/mac/os2/bsd/cdrom/nfs) network, etc. If we count the 'microkernel' part (kernel, memory management, ipc, initialization, ext2 filesystem, and architecture from say i386, excluding the math coprocessor emulation) is around 35-40 kLOC, for whatever it is worth. -- przemek klosowski (301) 975-6249 NIST Center for Neutron Research (bldg. 235), E111 National Institute of Standards and Technology Gaithersburg, MD 20899, USA .. and for spam extractors, FCC Commisioners' email is: wkennard@fcc.gov,sness@fcc.gov,pmisener@fcc.gov,mpowell@fcc.gov