Displaying 3 results from an estimated 3 matches for "write_bitcode_to_stdout".
2007 Nov 25
1
[LLVMdev] OCaml bindings
...ndard C++ doesn't provide file-descriptor streams at all.
(LLVM uses C++ iostreams.)
2. Ocaml doesn't allow extracting the file descriptor from an
Output_channel.
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 internally.
>> I think a translation of the tutorial would be most welcome and
>> about 10x shorter. ;-)
>
> Shall we port the tutorial to OCaml?
By all means! I think you'd also stumble across some areas that are
not boun...
2007 Nov 25
0
[LLVMdev] OCaml bindings
...rovide file-descriptor streams at all.
> (LLVM uses C++ iostreams.)
> 2. Ocaml doesn't allow extracting the file descriptor from an
> Output_channel.
>
> 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 internally.
Right. That would probably do the trick. Anyone wanting JIT functionality from
OCaml will presumably want that.
> >> I think a translation of the tutorial would be most welcome and
> >> about 10x shorter. ;-)
>...
2007 Nov 25
5
[LLVMdev] OCaml
On Sunday 25 November 2007 12:23, Gordon Henriksen wrote:
> On 2007-11-24, at 21:58, Jon Harrop wrote:
> > - Garbage collection tuned for functional programming
>
> http://llvm.org/docs/GarbageCollection.html
>
> I've been doing some interesting work on this front. Getting Lattner-
> cycles to have it reviewed and integrated is probably the biggest
> challenge; LLVM