Version française
Home     About     Download     Resources     Contact us    
Browse thread
ICFP'00 programming contest
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pascal Grosse <grosse@i...>
Subject: Re: ICFP'00 programming contest


On Fri, 1 Sep 2000, Xavier Leroy wrote:

> > I tried to compile the raytracer ...
> > > /tmp/camlasm0.s: Assembler messages:
> > > /tmp/camlasm0.s:235: Error: suffix or operands invalid for `fld'
> > Did you use a special version of ocamlopt ?
> 
> Actually, we used a post-3.00 development version.
> 
> I'm embarrassed to admit it, but the ray-tracer actually triggers a
> rather unlikely bug in the ocamlopt 3.00 compiler.
> (The development version we used still has the bug, but by sheer luck
> doesn't trigger it.)
> 
> So, this programming contest actually has some technical value as a
> bug finder, in addition to its amusement value :-)
> 
> I modified the source code available on the Web site so that it
> doesn't run into the bug.  (The bug pops up in a function that is
> not normally called, anyway.)
> 

I found that by removing the '-inline 20' in the makefile, the error is
not triggered by ocamlopt v3.00.

Pascal Grossé