[GHC] #15051: -split-objs generates excessively many files on Windows

GHC ghc-devs at haskell.org
Wed Jul 25 18:53:41 UTC 2018


#15051: -split-objs generates excessively many files on Windows
-------------------------------------+-------------------------------------
        Reporter:  kanetw            |                Owner:  Phyx-
            Type:  bug               |               Status:  new
        Priority:  highest           |            Milestone:  8.6.1
       Component:  Compiler          |              Version:  8.5
  (CodeGen)                          |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4915
       Wiki Page:                    |  Phab:D4916
-------------------------------------+-------------------------------------

Comment (by Zemyla):

 I've noticed this problem too, but I'm not sure getting rid of split-objs
 is the solution. The problem, it seems to me, is that it's (a) splitting
 with a Perl script, and (b) calling gcc with each and every single
 individual file produced.

 Is it possible to get rid of the Perl script, at least on Windows, by
 specializing the split-objects procedure for Windows x86/x64 builds and
 then using gcc to build many assembly files at a time? Actually, now that
 I think about it, why is it even using gcc to convert the assembly files
 into object files in the first place? Doesn't it convert the code directly
 into an object file when split-objs isn't used?

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


More information about the ghc-tickets mailing list