How to interpret library sizes reported by "size"
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