Browse thread
Compiling Ocaml sources to c sources
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Thomas Gazagnaire <thomas.gazagnaire@i...> |
| Subject: | Re: [Caml-list] Compiling Ocaml sources to c sources |
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