Displaying 4 results from an estimated 4 matches for "make_string_const".
2007 Oct 02
2
[LLVMdev] OCaml Install Error
...trivial example.
$ cat metahelloworld.ml
(* metahelloworld.ml *)
open Llvm
open Llvm_bitwriter
let _ =
let filename = Sys.argv.(1) in
let m = create_module filename in
(* @greeting = global [14 x i8] c"Hello, world!\00" *)
let greeting = define_global "greeting" (make_string_constant
"Hello, world!" true) m in
(* declare i32 @puts(i8*) *)
let puts = declare_function "puts" (make_function_type i32_type [|
make_pointer_type i8_type |]
false) m in
(* define i3...
2007 Oct 19
0
[LLVMdev] OCaml Install Error
...* metahelloworld.ml *)
>
> open Llvm
> open Llvm_bitwriter
>
> let _ =
> let filename = Sys.argv.(1) in
> let m = create_module filename in
>
> (* @greeting = global [14 x i8] c"Hello, world!\00" *)
> let greeting = define_global "greeting" (make_string_constant
> "Hello, world!" true)
> m in
>
> (* declare i32 @puts(i8*) *)
> let puts = declare_function "puts" (make_function_type i32_type [|
> make_pointer_type i8_type
>...
2007 Oct 02
0
[LLVMdev] OCaml Install Error
Hi,
where can I read more about this? I assume (hope) the lib provides
some kind of OCaml bindings? I could not find any trace of it in the
2.1 release source so I guess it's currently SVN only?
greetings,
Jan
On 2. Okt 2007, at 12:22, Gordon Henriksen wrote:
> On 2007-10-02, at 03:19, Gordon Henriksen wrote:
>
>> On Oct 2, 2007, at 00:17, Bill Wendling wrote:
>>
2007 Oct 02
4
[LLVMdev] OCaml Install Error
On 2007-10-02, at 03:19, Gordon Henriksen wrote:
> On Oct 2, 2007, at 00:17, Bill Wendling wrote:
>
>> I get this error duing a "make install":
>>
>> llvm[3]: Installing Debug /usr/local/lib/ocaml/libllvm.a
>> install: /usr/local/lib/ocaml/libllvm.a: Permission denied
>> make[3]: *** [install-a] Error 71
>> make[2]: *** [install] Error 1