[gambit-list] Test 5 failed

Marc Feeley feeley at iro.umontreal.ca
Thu Oct 20 15:42:31 EDT 2011


On 2011-10-20, at 3:39 PM, Bradley Lucier wrote:

> On Oct 20, 2011, at 3:27 PM, Marc Feeley wrote:
> 
>> My point is that the compilation of Scheme to C by gsc should not expose machine dependencies.  When the user writes +nan.0 in the Scheme code and compiles it to C, the C code should use the same IEEE NaN bit pattern regardless of the platform used to compile the Scheme program.  That way the C code will be completely portable.
> 
> Perhaps +nan.0 (and perhaps other system-dependent constants) should always be computed at load time for the module.

Perhaps, but how do you recreate the NaN that was compiled?  It is much simpler to normalize NaNs to a unique bit pattern.

Marc






More information about the Gambit-list mailing list