Messages in this thread | | | From | Denis Vlasenko <> | Subject | Re: List of oversized inlines | Date | Sun, 11 Apr 2004 19:51:34 +0300 |
| |
On Sunday 11 April 2004 19:32, Matt Mackall wrote: > On Sun, Apr 11, 2004 at 07:05:49PM +0300, Denis Vlasenko wrote: > > Below you may find a list of inlines which have multiple callers > > and which compile to more than 39 bytes. > > Could you perhaps subtract out the size of a null function and include > the product of size * uses? > > > Tool used to obtain this list will be published when > > I will polish it a bit. > > I'd obviously like to add this to the scripts in -tiny.
Well, it's too ugly for words now. I shall work on it a bit.
Basically, you:
* untar linux tree into tree/, * make allyesconfig NB: I did not do this, I used my 'usual' config * compile it with MEASURE_INLINES, saving make output in make_inline.log * run 'process' script (get a list of inlines) * run process2 (add functions to .c files) * run make again, >make_test.log * run process3 (file+line of errors) * run process4 (comment out error lines) NB: BUG! sh 'read -r line' strips spaces * run make again, no need to save space * run process5 (calculate size using nm) * run process6 (sorting) * run process7 (throw away 1 caller inlines) NB: needs rewriting in e.g. python, outrageously slow -- vda [unhandled content-type:application/x-tgz] | |