Le 22 juil. 05 à 06:49, Jonathan Roewen a écrit : > Where could I find information about how the ocamlopt compiler > generates object files? > > I'm almost at a point where DST could retrofit the ocamlopt.opt > compiler to run on it, and it might be an idea to write some tools in > ocaml to do things like linking and what not so that we don't need a C > environment to be self-hosting. ocamlopt work exactly the same way ocamlc does. "ocamlopt -c file.ml" to compile one ocaml source (you'll get a file.cmx and a file.o files) "ocamlopt -o test file.cmx alib.cmxa" to link the executable against the alib library. -- Damien alias Schmurtz aim:goim?screenname=schmuuurtz