#5164: Dump intermediate representations (-ddump-*) to a file
---------------------------------+------------------------------------------
    Reporter:  ezyang            |       Owner:              
        Type:  feature request   |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.0.3             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------
 I would like to extend the -ddump- interface to support dumping our
 intermediate representations to files.  The reasons why this would be
 useful are manifold:

 * In the case of a single file being compiled, directly saving
 intermediate representations to separate files would allow the user to
 avoid having to post-process the stdout output of GHC to separate all the
 different representations they may be interested in.

 * In a large, multi-file project (e.g. GHC), a convention for where these
 files are dumped would make it easier to do a compile with all of the low
 level debug representations available, aiding manual debugging of compiled
 GHC code and also perhaps paving the way towards C-- based debuginfo for
 GHC binaries.

 I'm not really sure what such an interface would look like, but my feeling
 is that these generated files should be analogous to other auxiliary files
 GHC generates (hi, etc.), with their file extension whatever comes have
 the -ddump- section of the flag.

 What do people think?

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to