• 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
How to interpret library sizes reported by "size"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to interpret library sizes reported by "size"


  • Subject: How to interpret library sizes reported by "size"
  • From: David Hoerl <email@hidden>
  • Date: Fri, 25 Apr 2014 14:14:42 -0400

I have an iOS library (.a) and would like to determine the actual size it will consume when linked into an app (client asked).

So, after a long time poking around trying to find the right tool, I tripped on "size" (who would ever have guessed that name!):

$ size  -arch arm64 myLib.a
__TEXT	__DATA	__OBJC	others	dec	hex
18436	7156	0	42642	68234	10a8a	myLib.a(a.o)
1659	528	0	7209	9396	24b4	myLib.a(b.o)
...

I know what text and data are, but have no clue as to what "others" means. This is library is a Foundation Objective C library.

Can anyone shed some light on what "others" might be? Its significantly larger than the "text" segment.

I assume to get the full size (assuming all object files get linked) would be to sum the "dec" column. What I'm trying to get answered is "how much memory will my library use after its linked into an app?"


Note that the library was not stripped when build.


David
_______________________________________________
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


  • Follow-Ups:
    • Re: How to interpret library sizes reported by "size"
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: IDEEditorDocument_DisableIsClosedAssertions
  • Next by Date: Re: How to interpret library sizes reported by "size"
  • Previous by thread: Re: IDEEditorDocument_DisableIsClosedAssertions
  • Next by thread: Re: How to interpret library sizes reported by "size"
  • Index(es):
    • Date
    • Thread