
On Tue, Nov 04, 2014 at 09:52:23AM +0000, Simon Peyton Jones wrote:
We don’t have "vectored returns" any more, so you can drop that one.
Thanks!
For "magic eight" there are some native-wordsize constants defined already. E.g. see how PrelRules.wordSizeInBits is computed.
As far as I understood that constant in ticky code was associated with number of bins in the histogram, so I need to find a way to define it both in C and in Haskell (preferably once). Actually there are nine bins, but eight is the index of the last one. Best, Mateusz
Thanks to Jan for helping
SImon
| -----Original Message----- | From: ghc-devs [mailto:ghc-devs-bounces@haskell.org] On Behalf Of | Mateusz Lenik | Sent: 03 November 2014 17:19 | To: ghc-devs@haskell.org | Subject: Resurrecting ticky code | | Hi *, | | Recently I started working on resurrecting ticky code[1] and got to | the point where I can compile and run bumpHistogram as well as | accompanying code in RTS. | | Work in progress version can be found at [2], but there are few things | remaining to get it working: | | * missing calls to tickyReturnNewCon, tickyUnboxedTupleReturn and | tickyVectoredReturn need to be added. Unfortunately I'm not familiar | with the | code enough to find the right place to insert them. | | * magic eight needs to be replaced by a constant both Haskell and C | files. | Preprocessor macro seems to be the simplest choice here, however I | don't find | it the cleanest way to do it. | | I would be very grateful if someone could take a look and point me | into the right direction. | | | Best, | Mateusz | | 1: https://ghc.haskell.org/trac/ghc/ticket/8308 | 2: https://github.com/mlen/ghc/compare/ticky | | -- | Mateusz Lenik | GPG: B865 E86A D36C 11A5 C1F8 C1D9 AAD4 CEC9 6B94 92C4
-- Mateusz Lenik GPG: B865 E86A D36C 11A5 C1F8 C1D9 AAD4 CEC9 6B94 92C4