I believe that we statically allocate all ASCII chars, and Ints between -16 and +16.  Have a look in ghc/rts/StgMiscClosures.cmm

 

Simon

 


From: haskell-cafe-bounces@haskell.org [mailto:haskell-cafe-bounces@haskell.org] On Behalf Of Monique Monteiro
Sent: 22 January 2006 23:26
To: haskell-cafe@haskell.org
Subject: [Haskell-cafe] GHC integers pre-allocation

 

Hi all,
  
  does anyone know if GHC implements any kind of pre-allocation of integers/caracteres ?  If yes, which range of values does it use?

Thanks in advance,

Monique Monteiro