Re: identify unused functions?
- From: "Dr. Michael J. Chudobiak" <mjc avtechpulse com>
- To: Stefan Kost <ensonic hora-obscura de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: identify unused functions?
- Date: Sun, 30 Mar 2008 16:28:37 -0400
Stefan Kost wrote:
Hi,
nm --undefined-only *.o | cut -c12- | sort | uniq
would give you a list of all external symbols
nm --defined-only *.o | cut -c12- | sort | uniq
would give you a list of all defined symbols
now all enties in 2nd list, which are not in first list should be what
you are looking for ('comm' should be able to do that).
Thanks, that looks pretty handy for general tidy-ups.
I know it's not accurate if you use pointers to functions and other
trickery...
- Mike
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]