RE: DynFlags.lhs

Simon Peyton-Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <59543203684B2244980D7E4057D5FBC1379DF1E7@DB3EX14MBXC306.europe.corp.microsoft.com>
Well it's 3,000 source lines long, which is certainly big for GHC.  (-dshow-passes show big code and long times for each pass.)  Maybe that's all it is -- in which case it might be a good plan to split it up.  But I also wonder whether 

 * Some particular aspect of the code is triggering bad behaviour, perhaps 
    duplicating lots of code somehow.  

* There is something badly non-linear, so that eg a file with a lot of top-level
   defns takes a non-linear time to process.  This seems entirely possible.

If you had  a moment to look that would be great.  

Simon

|  -----Original Message-----
|  From: [email protected] [mailto:[email protected]] On
|  Behalf Of Ian Lynagh
|  Sent: 18 September 2012 17:56
|  To: [email protected]
|  Subject: Re: DynFlags.lhs
|  
|  On Tue, Sep 18, 2012 at 04:42:03PM +0000, Simon Peyton-Jones wrote:
|  > Somehow compiling DynFlags.lhs has started taking a very long time, and
|  generates lots of code. I have not had time to investigate, but if anyone has any
|  idea what is happening I'd be happy to know.
|  
|  I've added some more stuff to it recently. In particular, a large type:
|      includes/dist-derivedconstants/header/GHCConstantsHaskellType.hs
|  and lots of little wrapper functions:
|      includes/dist-derivedconstants/header/GHCConstantsHaskellWrappers.hs
|  get #included into it now. I haven't looked into which is responsible
|  yet, though.
|  
|  
|  Thanks
|  Ian
|  
|  
|  _______________________________________________
|  Cvs-ghc mailing list
|  [email protected]
|  http://www.haskell.org/mailman/listinfo/cvs-ghc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.