
9 Oct
2015
9 Oct
'15
4:16 p.m.
On 2015-10-09 07:30 AM, Rob Stewart wrote:
Can I ask GHC to tell me how many bytes the storage of each object would require? Or more generally, would looking at GHC Core for all my data structures inform me of the memory space costs for each of them?
Cmm (-ddump-opt-cmm) is where you see the actual numbers directly. But if you already know the stuff in https://github.com/takenobu-hs/haskell-ghc-illustrated then you can just look at the Haskell level and predict.