[Caml-list] embedding ocaml into a windows app: need gcc?

2008-09-27 Thread Joel Reymont
Can I do without gcc if I want to embed the OCaml compiler into a commercial Windows app? Do I need to become part of the OCaml consortium to do this? Ideally, I would like to generate OCaml code at runtime and compile it into something that can be loaded by a runtime of some sort.

Re: [Caml-list] embedding ocaml into a windows app: need gcc?

2008-09-27 Thread Richard Jones
On Sat, Sep 27, 2008 at 08:27:18PM +0100, Joel Reymont wrote: Can I do without gcc if I want to embed the OCaml compiler into a commercial Windows app? The OCaml compiler uses gcc in various stages (linking IIRC). Also needs an assembler. Do I need to become part of the OCaml consortium to

Re: [Caml-list] embedding ocaml into a windows app: need gcc?

2008-09-27 Thread David Teller
I don't know if this answers your question, but OCaml 3 now has Dynlink, i.e. a manner of dynamically loading OCaml modules from OCaml. So if you manage to get your code compiled at run-time, it shouldn't be too hard to load it. Cheers, David On Sat, 2008-09-27 at 20:27 +0100, Joel Reymont

Re: [Caml-list] embedding ocaml into a windows app: need gcc?

2008-09-27 Thread Mikkel Fahnøe Jørgensen
2008/9/27 Joel Reymont [EMAIL PROTECTED]: Can I do without gcc if I want to embed the OCaml compiler into a commercial Windows app? I assume you mean native compilation. As mentioned, you should consider using a standalone ocaml compiler to avoid licensing issues, but either way: The ocamlopt