RE: Retrieving closure code during code generation

2009-03-03 Thread Simon Peyton-Jones
epends on the caller (which might not even have been written yet). Furthermore, 'f' is a closure (a pair of code and environment) not just code. From: cvs-ghc-boun...@haskell.org [mailto:cvs-ghc-boun...@haskell.org] On Behalf Of William Jones Sent: 02 March 2009 20:50 To: cvs-ghc@has

Re: Retrieving closure code during code generation

2009-03-03 Thread Simon Marlow
William Jones wrote: I am currently working with GHC's code generator and am wondering if there is any way I can retrieve the Cmm for a function during the compilation of another? I have looked at the information passed using CgMonad and at the bindings in scope but these don't seem to be what

Retrieving closure code during code generation

2009-03-02 Thread William Jones
Hello, I am currently working with GHC's code generator and am wondering if there is any way I can retrieve the Cmm for a function during the compilation of another? I have looked at the information passed using CgMonad and at the bindings in scope but these don't seem to be what I need. As an exa