![]()
![]()
![]()
Next: Methodology Up:
Estimating Operating System Code
Previous: Estimating Operating System Code
The number of defects per thousand lines of code (the so-called “defect density”) is a widely accepted measure of code quality. We use the Orion static analysis tool to look for common coding errors in the source code for the Linux operating system as well as another OS that remains anonymous and will be referred to as NN. The errors detected using Orion are: the use of an uninitialized variable, dereference of a null pointer, and out-of-bounds array indexing. The experiment shows that the Linux source code has a much lower defect density (0.042) as compared to the NN code (0.328). While this may give some indication of the code quality, the numbers are subject to two significant caveats: (1) it is unknown whether this difference has any statistical significance, and (2) there may very well be other errors that remain undetected by this method.