On 6/09/2016 6:58 PM, John Eells wrote:
Lindy Mayfield wrote:
Linux kernel has about 19,5 million lines of code I saw, and a distribution is about 200 million lines of code.

My googlinging didn't tell me much about z/OS. Any even close semi-ballpark idea how many lines of code are in the z/OS operating system? (Or even a "standard" serverpac distro?)
<snip>

What's a "line of code"? That's a serious question. Is a line of assembler equivalent to a line of PLX, C, REXX, Java, ISPF DTL? etc. Are comment lines included in the count? Does everyone use the same metrics? I think there is approximately no hope of getting a valid comparison of operating system size based on a LOC count (with your favorite prefix before "LOC").

Perpaps the best thing to compare is the size of the binaries on disk, but even that begs the question of "what's an executable"? Do ISPF panels, for example, count?


That's a very good point. Optimizing compilers tend to create much larger binaries after they unroll loops and inline functions. C++ creates very large binaries due to the fact the standard library (STL) is mostly templates which are like macros.

WRT to the Linux kernel, those 20M lines of code is just the kernel. When you add core utilites and drivers and other userspace code that will be considerably more lines of code.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to