Where to find GHC.Types.D#_con_info

Hello, I'm trying to debug few issues in SPARC NCG, now dealing with double floats issue. Always get 0.0 and while hunting this I've stepped over GHC.Types.D#_con_info which I'm not able to find in GHC sources but I guess it should be somewhere... Any idea where to look to see its code for reference? Thanks! Karel

This might be GHC.Generics generated stuff. Do you have some more context?
Thanks,
Pedro
On Thu, Mar 13, 2014 at 6:49 PM, Karel Gardas
Hello,
I'm trying to debug few issues in SPARC NCG, now dealing with double floats issue. Always get 0.0 and while hunting this I've stepped over GHC.Types.D#_con_info which I'm not able to find in GHC sources but I guess it should be somewhere... Any idea where to look to see its code for reference?
Thanks! Karel _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

For every data constructor GHC generates an "info table", and its label is "C_con_info" I think. The first word of the data constructor heap object points to the info table. The info table has data that describes the object layout (for the GC), and a little piece of code that says simply "return", used if someone enters that object. More details about info tables in many GHC papers Simon | -----Original Message----- | From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of Karel | Gardas | Sent: 13 March 2014 18:50 | To: ghc-devs | Subject: Where to find GHC.Types.D#_con_info | | Hello, | | I'm trying to debug few issues in SPARC NCG, now dealing with double | floats issue. Always get 0.0 and while hunting this I've stepped over | GHC.Types.D#_con_info which I'm not able to find in GHC sources but I | guess it should be somewhere... Any idea where to look to see its code | for reference? | | Thanks! | Karel | _______________________________________________ | ghc-devs mailing list | ghc-devs@haskell.org | http://www.haskell.org/mailman/listinfo/ghc-devs
participants (3)
-
José Pedro Magalhães
-
Karel Gardas
-
Simon Peyton Jones