Mailing List archive

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

[linux-dvb] Re: refactoring



Gerd Knorr wrote:

stripped-down frontend drivers are a few 100bytes ... 2.5kB which is
kind of tiny compared to the i2c core. Most card drivers will get linked
together with less than 3 frontend drivers.

I need a copy of your compiler, as it has an extremely effective size optimizer :) Mine comes out as ~160kb without ksyms and with size opt.

It's actually somewhere inbetween. lsmod shows the code size of the
loaded modules:

ves1x93 8536 0 tda1004x 16708 0 stv0299 16520 0 sp887x 8772 0 nxt6000 9156 0 mt352 10884 0 mt312 9796 0 grundig_29504_491 7044 0 grundig_29504_401 9352 0 dib3000mb 12736 0 cx24110 9944 0 cx22702 10372 0 alps_tdmb7 7620 0 alps_tdlb7 8716 0
That is between 2 and 5 pages per module, maybe it goes down a bit with
the cleanups, but probably not much. i2c size to compare with:

linked-in drivers don't add entire pages but the exact number of bytes in their code and data segments.

Holger





Home | Main Index | Thread Index