News for hackers. Stuff that matters.
Re:How could the early Unix OS comprise so few lines of code? by mdp2021 on Monday September 11, 2023 @04:38AM (#37464506)
Latest Linux kernel source:

     39051  certs    0.0%
     40404  usr      0.0%
    164228  init     0.0%
    240426  virt     0.0%
    250265  ipc      0.0%
    459021  io_uring 0.0%
    664443  rust     0.1%
    979555  samples  0.1%
   1885010  block    0.1%
   2849606  scripts  0.2%
   2953164  security 0.2%
   3609139  crypto   0.3%
   5165331  mm       0.4%
   7156454  lib      0.5%
  12419586  kernel   1.0%
  33047417  net      2.5%
  39916290  include  3.1%
  43223905  fs       3.3%
  45000780  sound    3.4%
  54987535  tools    4.2%
 107971048  arch     8.3%
 943527384  drivers 72.2%
Based on byte count (total 1,306,550,042 bytes in the above).
Re:How could the early Unix OS comprise so few lines of code? by uaeu321321 on Monday September 11, 2023 @07:44AM (#37465815)
arch seems pretty essential and it's still at 107m. hardware is complex, no way around it.
Re:How could the early Unix OS comprise so few lines of code? by bluGill on Monday September 11, 2023 @09:28AM (#37466967)
I'm not familiar with linux, but is arch platforms support for a bunch of different archs - x86, x86_64, arm, arm64, and many more come to mind.
Re:How could the early Unix OS comprise so few lines of code? by cmrdporcupine on Monday September 11, 2023 @10:07AM (#37467492)
As sibling pointed out, to be fair you'd want to somehow restrict arch/ down to one only architecture.
Re:How could the early Unix OS comprise so few lines of code? by rurban on Tuesday September 12, 2023 @02:50AM (#37477623)
FreeRTOS on the other hand is just two C files.

And a proper secure microkernel much less.