[GHC] #5355: Link plugins against existing libHSghc

GHC cvs-ghc at haskell.org
Fri Jul 29 14:16:15 CEST 2011


#5355: Link plugins against existing libHSghc
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.3             |    Keywords:              
    Testcase:                    |   Blockedby:  5292        
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 This ticket split out from #3843 since it was getting too crowded

 Once we can safely export all symbols from libHSghc through the
 executable, we want to link plugins against the loaded GHC library rather
 than a new copy. This has two benefits:

   1. Linking plugins will be faster
   2. We can make reinitializeGlobals into a no-op

 This is currently blocked by #5292 because libHSghc exports more symbols
 than we can reexport on Windows. There is one suggestions in #3843 to
 reexport less: exclude more of GHC's dependencies from being reexported,
 using this snippet to get the package list:

 {{{
 $(foreach p,$(PACKAGES),$p-$(libraries/$p_dist-install_VERSION))
 }}}

 Once we have cut the number of exported symbols down enough, the patches
 in #3843's attachment 3843-v2.zip can be applied to fix this ticket.
 (There was a reported validate failure with this patch in annrun01 on x64
 linux which should also be checked)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5355>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list