Stripping out unused code from linked static library
Stripping out unused code from linked static library
- Subject: Stripping out unused code from linked static library
- From: Darrell Blake <email@hidden>
- Date: Sat, 02 Apr 2011 14:01:52 +0100
Hi,
I'm fairly new to XCode and have recently started helping out on a
small open source project with the Mac development. It's a cross
platform game which uses CMake to generate projects, but that's
irrelevant.
Basically, one of the tools we build uses wxWidgets for its GUI so
I've compiled wxWidgets manually as a series of universal static libs
and then these are getting linked into the main game binary. However,
I've noticed that whether I build debug or release the binary is
around 36mb which is very large. I'm assuming this is because
wxWidgets in itself is large, especially when compiled for multiple
architectures.
I've been trying to think of ways to get the binary size down and
something that came to mind is that I know in Visual Studio in Windows
if you select a high enough optimisation level it only uses the code
from linked static libs that it has to. I'm assuming there's something
similar in XCode (or GCC) but no matter what I change (I've tried all
the "optimization level" settings) it's spitting out binaries around
36mb every time.
Is there anything else I can do?
_______________________________________________
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