[gambit-list] floating point number representation

naruto canada narutocanada at gmail.com
Mon Aug 20 19:00:19 EDT 2007


On 8/21/07, Marc Feeley <feeley at iro.umontreal.ca> wrote:
>
> On 20-Aug-07, at 5:11 PM, naruto canada wrote:
>
> > On 8/21/07, naruto canada <narutocanada at gmail.com> wrote:
> >> On 8/21/07, Marc Feeley <feeley at iro.umontreal.ca> wrote:
> >>>
> >>> On 20-Aug-07, at 3:41 PM, naruto canada wrote:
> >>>
> >>>> hi
> >>>>
> >>>> (+ 1.0 3.0)
> >>>> ;; 4.
> >>>>
> >>>> can I have "4.0" instead?
> >>>> where do I have to change in "lib/_num.scm"? (I am guessing)
> >>>
> >>> In lib/_num.scm change
> >>>
> >>> (##define-macro (macro-chez-fp-syntax) #f)
> >>>
> >>> to
> >>>
> >>> (##define-macro (macro-chez-fp-syntax) #t)
> >>>
> >>> and do a "make".
> >>
> >> I've just tried it, it segfaults.
> >> (+ 4.0 5.0)
> >> Segmentation fault
> >
> > Gambit Version 4.0 beta 22
> >> (+ 4.0 5.0)
> > Segmentation fault
>
> Strange... it works fine when I make the change:
>
>  > (+ 4.0 5.0)
> 9.0

ok, just got it working now
./configure --prefix=/usr --enable-single-host --enable-gcc-opts
make || sleep 99999999
make check
make install
cp /lfs/patch/_num.scm lib
cp /lfs/patch/_eval.scm lib
cp /usr/4.0b22/bin/gsc gsc-comp
make bootstrap || sleep 99999999
make || sleep 99999999
make check
make install


>
> Marc
>
>



More information about the Gambit-list mailing list