> At the moment I'm trying to compile ghc-4.04 with ghc-2.10 on Alpha.
> Apart from some easily fixed issues I have the following question:
> In fptools/ghc/rts/RtsAPI.c the functions rts_getInt, rts_getInt32,
> rts_getWord, and rts_getWord32 return an (unsigned) int (= 4 bytes
> on Alpha), but pointers and longs are 8 byte on this architecture.
> Is this correct?

rts_getInt should return an StgInt (which is defined as being a signed
integer of the same size as a pointer on the target architecture), and
rts_getInt32 should return an explicitly sized type, such as StgInt32.

Thanks for pointing this out, I'll fix it when I get back next week.

Cheers,
        Simon

Reply via email to