Re: Tool for inspecting size of functions in binaries?
Re: Tool for inspecting size of functions in binaries?
- Subject: Re: Tool for inspecting size of functions in binaries?
- From: Greg Guerin <email@hidden>
- Date: Tue, 24 Jan 2012 09:57:27 -0700
Jens Alfke wrote:
I have a compiled binary whose code size I would like to make
smaller (ensmallen?) So I’d like to be able to see how many bytes
each of its functions/methods/constants/etc. take up. Now, the
output of ‘otool’ seems to include enough information to derive
that, but it’s not in a human comprehensible form — for example, it
lists the address of each symbol, but to find sizes you'd have to
sort by address and then subtract adjacent lines.
Sounds like something a few lines of awk or perl could do. At least
the "subtract adjacent lines" part.
otool | sort | {awk,perl} your script here
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden