-fvisibility=hidden

Dan Williams dcbw at redhat.com
Sat Feb 12 02:40:28 UTC 2005


On Sat, 12 Feb 2005, Felipe Alfaro Solana wrote:
> I've seen Mandrake has started compiling KDE with -fvisibility=hidden. 
> They say this improve load times considerably. Has this flag other 
> nasty consequences?

It shouldn't, as long as the code is fairly well behaved.  We're starting to 
use this for OpenOffice.org as well, any large C++ app can greatly benefit from 
this option because the rather un-optimized dynamic linker doesn't have to load 
and resolve as many symbols at run-time.  You should get link-time errors if 
symbols that aren't explicitly marked visible are needed by some other part of 
the program.

Dan




More information about the fedora-devel-list mailing list