GHC integers pre-allocation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GHC integers pre-allocation

Monique
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

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

RE: GHC integers pre-allocation

Simon Peyton Jones

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: [hidden email] [mailto:[hidden email]] On Behalf Of Monique Monteiro
Sent: 22 January 2006 23:26
To: [hidden email]
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


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe