We’re building our project (with Xcode 3.2.2 on Mac OS X 10.6.3, GCC 4.0.1) using the -fvisibility=hidden flag.
We mark the classes we want to be visible with __attribute__((visibility("default"))).
For further optimization, should we be marking with __attribute__((visibility("hidden"))) the methods inside these classes that should not be exported?
It seems like quite a bit of work, and I’m not sure if it’s worthwile, but the GCC Visibility Wiki makes me think it’s the right way to go.
Thanks!
While it would appear the benefit exists, I would wait until the optimization becomes necessary to perform it.