Re: Finding orphaned functions

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

 



Yan Seiner wrote:
I've got a huge app that's got a bunch of functions that are not used. I've found a few by hand but it's slow and tedious.

Is there some way to get gcc or helper app to tell me what and where they are?

--Yan

The old way was to use lorder and tsort:
http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+lorder

Nowadays, you may have to build and install some of this yourself.
Having made a bunch of .o files, sorting with this utility, the unreferenced ones float to the top. Then you can remove them, and recheck that you didn't remove anything which is required. I guess the original purpose was to support a single pass loader, but this also had advantages in getting better page locality, partly by getting the unused modules out of the way.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux