[GHC] #9832: Get rid of PERL dependency of `ghc-split`

GHC ghc-devs at haskell.org
Mon Jul 20 10:47:49 UTC 2015


#9832: Get rid of PERL dependency of `ghc-split`
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                   Owner:  Phyx-
            Type:  task              |                  Status:  new
        Priority:  high              |               Milestone:  7.12.1
       Component:  Driver            |                 Version:
      Resolution:                    |                Keywords:  perl
Operating System:  Windows           |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------
Changes (by thomie):

 * cc: simonmar (added)


Comment:

 > Ended up inlining one of the PCRE bindings since rewriting this without
 Perl Regex would have ended up in something a lot bigger and complexer.

 I [https://github.com/Mistuke/ghc/tree/trac-9832-replace-split-perl-
 script-with-haskell noticed] that this adds 30.000 lines of C and 1700
 lines of Haskell. Not sure if that's any better than just bundling Perl on
 Windows + a 300 line Perl script.

 What is the problem we're trying so solve here? If it's binary size: we've
 been shipping Python and fortran compilers as well, maybe start with
 stripping those (#9014).

 Perhaps we can get rid of split-objs completely? I found the following
 quote by @simonmar in SharedLibraries:

    "Shared libs also completely eliminates the need for the “split objs”
 hack
    that GHC uses to reduce the size of statically linked programs. This
 should
    make our link times a bit quicker."

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9832#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list