[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Enormous sizes of Hurd *.h headers



I did ``cpp -D_GNU_SOURCE file.h | wc'' on a few headers.

Here are results ( format: lines words bytes )

hurd.h :
  23528   16126  167120
hurd/store.h
  13732    9483  100985
hurd/trivfs.h
  24875   17743  184575
hurd/diskfs.h
  28631   21074  216393

For comparing :

stdio.h :
   2556    1915   17840
stdlib.h :
   2591    2080   18615
unistd.h :
   2652    1685   17454

Hurd headers are about 10x bigger than other C headers.
    ( This is one of the reasons why reading headers doesn't work
      as a way of learning programming Hurd )

Do we really need so big files ?
Nobody ever thought of reducing them to reasonable sizes,
    probably by checking if all sub-includes are necesary
    or rearanging them a bit ???



Reply to: