[LLVMdev] OCaml bindings
gordonhenriksen at mac.com
Sun Nov 25 13:31:06 PST 2007
On Nov 25, 2007, at 16:04, Jon Harrop wrote:
> On Sunday 25 November 2007 20:01, Gordon Henriksen wrote:
>> On Nov 25, 2007, at 11:49, Jon Harrop wrote:
>>> Can we use pipes to avoid generating intermediate files?
>> However, writing the bitcode presently requires a temp file. [...]
>> There are a variety of workarounds available for the bindings, but
>> I have not yet pursued them. The simplest is a
>> "write_bitcode_to_stdout" function which uses the std::cout stream
> Right. That would probably do the trick. Anyone wanting JIT
> functionality from OCaml will presumably want that.
Actually, there's little reason for a JIT to use the bitwriter module
at all, since the Module* (llmodule) representation is the JIT's input.
More information about the llvm-dev