Displaying 4 results from an estimated 4 matches for "ltmp_2_2".
2006 Nov 17
4
[LLVMdev] C++ to C
...r (AMPC) that will convert the C
code to Java Bytecode. If the above function is in C++ then I need to
convert it to C first.
Here's the code segment that uses the function:
int main(void) {
struct
l_struct_2E_std_3A__3A_basic_ostream_3C_char_2C_std_3A__3A_char_traits_
3C_char_3E__20__3E_ *ltmp_2_2;
CODE_FOR_MAIN();
/*tail*/ __main();
ltmp_2_2 = /*tail*/
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc((
&_ZSt4cout), (&(_2E_str_1[0])));
return 0;
}
Thanks for any tips.
Napi
2006 Nov 17
0
[LLVMdev] C++ to C
...;code to Java Bytecode. If the above function is in C++ then I need to
>convert it to C first.
>
>Here's the code segment that uses the function:
>
>int main(void) {
> struct
>l_struct_2E_std_3A__3A_basic_ostream_3C_char_2C_std_3A__3A_char_traits_
>3C_char_3E__20__3E_ *ltmp_2_2;
>
> CODE_FOR_MAIN();
> /*tail*/ __main();
> ltmp_2_2 = /*tail*/
>_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc((
>&_ZSt4cout), (&(_2E_str_1[0])));
> return 0;
>}
>
>Thanks for any tips.
>
>Napi
>
>___________________________________...
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Nov 5, 2006, at 2:30 AM, Mohd-Hanafiah Abdullah wrote:
> On Sat, 2006-11-04 at 21:06 -0800, Reid Spencer wrote:
>>> In the resulting file foo.cbe.c there are many occurences of '0x0p
>>> +0'.
>>> What is it used for? Here's a code snippet from the file foo.cbe.c
>>>
>>> if ((ltmp_126_2 > 0x0p+0)) {
>>> goto
2006 Nov 05
4
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Sat, 2006-11-04 at 21:06 -0800, Reid Spencer wrote:
> Hi Napi,
>
> On Sun, 2006-11-05 at 12:40 +0800, Mohd-Hanafiah Abdullah wrote:
> > Hi:
> >
> > I'm interested in using llvm to convert C++ code to C code.
> > I used the following command to do this:
> >
> > % llvm-g++ -c foo.cpp -o - | llc -march=c -o foo.cbe.c
>
> Yup, that'll