search for: tp27788693p27789107

Displaying 3 results from an estimated 3 matches for "tp27788693p27789107".

2010 Mar 05
0
[LLVMdev] Pointer to String Constant
On Mar 4, 2010, at 4:50 PM, Nyx wrote: > > I'm writing a C compiler in OCaml and I've run into a small problem. I wrote > the following piece of code to generate a pointer to a string constant, so I > could compile C expressions of the form "const char* p = "test\n";" : > > let strval = const_stringz codecontext v in > dump_value strval; >
2010 Mar 05
2
[LLVMdev] Pointer to String Constant
...ch what I have? I'm doing a constant gep on the string constant, which registers as an array of type [6 x i8], with two i32 0 indices. Note that I tried with a non-constant gep also, and it does the same thing. -- View this message in context: http://old.nabble.com/Pointer-to-String-Constant-tp27788693p27789107.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
2010 Mar 05
3
[LLVMdev] Pointer to String Constant
I'm writing a C compiler in OCaml and I've run into a small problem. I wrote the following piece of code to generate a pointer to a string constant, so I could compile C expressions of the form "const char* p = "test\n";" : let strval = const_stringz codecontext v in dump_value strval; dump_value i32_zero; const_gep strval [| i32_zero; i32_zero |] The dump statements