[Ns-developers] GCC 4 -fvisibility=hidden

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Sun Jan 25 11:23:04 PST 2009


Yes, but:

1) a large fraction of performance-sensitive code is also 'public' so
you can't mark it 'hidden' so, you lose all the performance gain of this
marking (there are 3 big items: the packet.h, simulator.h and object.h
code).

2) it is fairly non-trivial to do the initial marking and maintain it
correctly

To summarize, a long time ago, I did already try 1) in a private tree
but did not gain anything from it besides very marginal gains (about 3%
wall clock time).

Mathieu

On Sat, 2009-01-24 at 18:00 +0000, Gustavo Carneiro wrote:
> Interesting read,
> 
>   http://gcc.gnu.org/wiki/Visibility
> 



More information about the Ns-developers mailing list