#4837: Template Haskell does not work in a profiled compiler.
---------------------------------+------------------------------------------
    Reporter:  benl              |        Owner:                         
        Type:  bug               |       Status:  new                    
    Priority:  normal            |    Milestone:                         
   Component:  Profiling         |      Version:  7.0.1                  
    Keywords:                    |     Testcase:                         
   Blockedby:                    |   Difficulty:                         
          Os:  Unknown/Multiple  |     Blocking:                         
Architecture:  Unknown/Multiple  |      Failure:  GHC doesn't work at all
---------------------------------+------------------------------------------

Comment(by simonmar):

 Replying to [comment:1 simonpj]:

 > Maybe the code compiled by Template Haskell can be un-profiled?  That
 might be an easy fix.

 The problem is that when the compiler is profiled, the byte-code compiler
 and interpreter have to coexist with profiled object code, which means

  - different heap object layouts
  - different stack frame layouts
  - we need to push/pop/set cost centres as necessary
  - do other profiling-related things (update the LDVW for biographical
 profilng
    when creating and entering an object, for example)

 there's no fundamental problem with any of this, but it would probably
 take a few days to straighten it all out.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4837#comment:2>
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