Changes between Version 49 and Version 50 of ReplacingGMPNotes


Ignore:
Timestamp:
Sep 3, 2008 10:02:49 PM (6 years ago)
Author:
JimCrayne
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ReplacingGMPNotes

    v49 v50  
    1010 1. [wiki:ReplacingGMPNotes#FilesrelatedtoGMPintheGHCCompilerSourceCode Files related to GMP in the GHC Compiler Source Code] 
    1111 1. [wiki:ReplacingGMPNotes#OptimisationOpportunities Optimisation Opportunities] 
     12 1. [wiki:ReplacingGMPNotes#BinaryDropinReplacementforGMP Binary Drop in Replacement for GMP] 
    1213 
    1314Other pages 
     
    225226}}} 
    226227If an integer add were to overflow here, the addition operation would be performed ''twice''; even if the integer add did not overflow one extra operation is performed.  Is this an acceptable price for no comparisons? 
     228 
     229=== Binary Drop in Replacement for GMP === 
     230One approach which would only address the license issue would be to develop doing your own linking, without gmp. Each time you come to a linker error having to do with a missing function, you can add the function to a gmp replacement which exports the same interface as gmp as you go... Over time, we'd re-implement as much of GMP as is required by any haskell program... Getting somethign working can take priority.   
     231 
     232Test suites can be developed and perhaps even borrowed from the gmp development team since we should be binary compatable... 
     233 
     234This approach has been started already here: http://hackage.haskell.org/trac/ghc/attachment/ticket/601/jmp.c