Hi Thomas, Basile's suggestion allows us to use the whole OCaml syntax with no real need for coding. That's why we are planing to use it. Thank you for your solution. Cheers! On 09/14/2010 02:47 PM, Thomas Gazagnaire wrote: > Hi Vincent! > > you can try camloo [1] which compiles (old-syntax) caml-light to bigloo, > which is a scheme to C compiler. I reckon it would be quite easy to > update it to parse the ocaml syntax if you don't use > functors/objects/variants/labels/thread (ie. if you use only what is > available in caml-light). > > Cheers, > Thomas > > [1] http://www-sop.inria.fr/members/Thomas.Gazagnaire/ > > > On Tue, 2010-09-14 at 14:09 +0200, Vincent Gripon wrote: >> Hello, >> >> We are currently planing to participate to a programming contest. This >> contest allows the use of four languages (C/C#/C++/java) but not >> OCaml. >> >> We would like to use Ocaml as it is to us the language that fits the >> most the kind of exercises proposed. The organizers don't mind if we >> use OCaml as long as we provide an easily compilable C source to them, >> even if it is not readable. >> >> Is there any platform independent way to compile OCaml sources to C >> sources? And if not, do you have any pointer (we gave a try at >> compiling OCaml sources to C object files using the -output-obj option >> but couldn't compile then the resulting file with our C compiler)? >> >> Best, >> >> Vincent >> _______________________________________________ >> Caml-list mailing list. Subscription management: >> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list >> Archives: http://caml.inria.fr >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs >