• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tool for inspecting size of functions in binaries?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Download link for Xcode 4.1 for Snow Leopard?
  • Next by Date: Re: IB Error: "Can't delete something I don't contain"
  • Previous by thread: Re: Tool for inspecting size of functions in binaries?
  • Next by thread: vForce Performance
  • Index(es):
    • Date
    • Thread