Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: ICFP'00 programming contest
> 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.)


- Xavier Leroy