www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9893] New: [ELF] export should affect symbol visibility

http://d.puremagic.com/issues/show_bug.cgi?id=9893

           Summary: [ELF] export should affect symbol visibility
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu


--- Comment #0 from Martin Nowak <code dawg.eu> 2013-04-06 18:38:20 PDT ---
There are a number of good reasons to switch to explicit export,
i.e. normal symbols use hidden visibility and exported symbols use default
visibility.

- Windows compatibility
- less performance impact for PIC as only exported symbols require an
indirection
- faster symbol lookup reduces the load time
- more possibilities for link time optimizations
- inlining visible functions breaks interposition

For a more detailed reading see
http://gcc.gnu.org/wiki/Visibility
http://www.akkadia.org/drepper/dsohowto.pdf

NB:
As of now libphobos2.so exports 14100 symbols and 87139 with unittests compiled
in.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 06 2013