Changes between Version 50 and Version 51 of ReplacingGMPNotes


Ignore:
Timestamp:
Nov 24, 2008 11:48:50 PM (5 years ago)
Author:
tim
Comment:

typo

Legend:

Unmodified
Added
Removed
Modified
  • ReplacingGMPNotes

    v50 v51  
    2828GHC currently implements the Integer and Fractional types by using the [http://swox.com/gmp/ The GNU MP Bignum Library] (GMP) which supports arbitrary precision mathematical calculations.  GMP is fast, memory efficient, and offers many high level signed integer functions (140 of them), as well as many rational and floating point arithmetic functions.  The current GHC implementation only uses those functions necessary for the Prelude.   
    2929 
    30 GMP memory is integrated with the [wiki:Commentary/Rts RunTime System's] (RTS's) [wiki:Commentary/Rts/Storage Storage Manager] (SM)--the RTS's Garbage Collector (GC).  GMP memory is allocated from the GC heap, so values produced by GMP are under the control of the RTS and its GC.  The current implementation is memory efficient wile allowing the RTS and its GC to maintain control of GMP evaluations. 
     30GMP memory is integrated with the [wiki:Commentary/Rts RunTime System's] (RTS's) [wiki:Commentary/Rts/Storage Storage Manager] (SM)--the RTS's Garbage Collector (GC).  GMP memory is allocated from the GC heap, so values produced by GMP are under the control of the RTS and its GC.  The current implementation is memory efficient while allowing the RTS and its GC to maintain control of GMP evaluations. 
    3131 
    3232If you want to help with replacing GMP or do it yourself, you will have to work with the GC and RTS system.  The parts you will have to modify are written in C and C--, with configuration and assembly done through the Makefiles.  You should have an understanding of: