similar to: [LLVMdev] Convert C++ to C. What is 0x0p+0 ?

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Convert C++ to C. What is 0x0p+0 ?"

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
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
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 do it. Although you might want to do a little optimization otherwise you're going to get a lot of C code on
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi: I've been able to compile the attached "helloworld.c" file converted from "helloworld.cpp". My question is how does one usually use __main() and CODE_FOR_MAIN() in tying up with the rest of the code? Attached here are the original "helloworld.cpp" and "helloworld.c" files. Thanks. Napi On Sun, 2006-11-05 at 09:14 -0800, Reid Spencer wrote: >
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi Napi, On Mon, 2006-11-06 at 10:44 +0800, Mohd-Hanafiah Abdullah wrote: > Hi: > > I've been able to compile the attached "helloworld.c" file converted > from "helloworld.cpp". Great. > > My question is how does one usually use __main() and CODE_FOR_MAIN() > in tying up with the rest of the code? I'm not quite sure what you're asking.
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 17
4
[LLVMdev] C++ to C
After converting a piece of C++ code to C one of the functions that are generated is this: _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc Where is it defined and where can I find the source for it? I need the source to compile it with a C compiler (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
2006 Nov 06
2
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
On Sun, 2006-11-05 at 19:06 -0800, Reid Spencer wrote: ... > As for the __main function, its a gcc library call required by the > compiler for program startup. The details vary but the call is needed. > Amongst other things it will probably initialize your C++ static > constructors. Hi Reid: I'm not using gcc for this purpose but another C compiler called AMPC. It compiles C
2006 Nov 06
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
Hi Napi, On Mon, 2006-11-06 at 12:17 +0800, Mohd-Hanafiah Abdullah wrote: > On Sun, 2006-11-05 at 19:06 -0800, Reid Spencer wrote: > ... > > As for the __main function, its a gcc library call required by the > > compiler for program startup. The details vary but the call is needed. > > Amongst other things it will probably initialize your C++ static > >
2004 Nov 20
2
[LLVMdev] Re: C back-end for llvmg++
On Nov 19, 2004, at 9:25 PM, Mohd-Hanafiah Abdullah wrote: > Dear Dr Vikram: > > I need to know how to invoke llvmg++ so that it generates C code. Here's how you can do a single file (i.e., an unlinked executable): llvmg++ -c infile.cpp -o - | llc -march=c -o infile.cbe.c Reid might be able to tell you how to do it with a single command using the llvmc tool. In future, please
2007 May 09
2
[LLVMdev] C back-end differences
On Tue, 2007-05-08 at 11:58 -0700, Bill wrote: > On 5/8/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > > How does the C back-end of LLVM differ from the one in gcc2c developed > > by SUN several years ago? > > > Hi Napi, > > For one, it converts LLVM's bytecode to C instead of GCC's RTL. It's > also under a different license. Hi
2007 May 12
5
[LLVMdev] C back-end differences
On Fri, 11 May 2007, me22 wrote: > I'm not exactly sure how llvm-g++ works. I think it goes through the > standard gcc sequence (gimple, rtl, and such) but then outputs LLVM > (http://llvm.org/docs/LangRef.html), which is the intermediate > representation used by the rest of the chain. To make an LLVM backend > you would not need to deal with RTL and such at all. llvm-g++
2006 Nov 17
0
[LLVMdev] C++ to C
Mohd-Hanafiah Abdullah wrote: >After converting a piece of C++ code to C one of the functions that are >generated is this: >_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc > > This is a method/function from the standard C++ library. You can link it in at the bytecode level with: llvm-g++ -o output.bc <yourfile.bc> -lstdc++ You might also be able to do: llvm-g++
2007 May 12
2
[LLVMdev] C back-end differences
On Tue, 2007-05-08 at 22:45 -0700, Bill Wendling wrote: > On May 8, 2007, at 10:05 PM, Mohd-Hanafiah Abdullah wrote: > > > On Tue, 2007-05-08 at 11:58 -0700, Bill wrote: > >> On 5/8/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > >>> How does the C back-end of LLVM differ from the one in gcc2c > >>> developed > >>> by SUN
2006 Nov 17
2
[LLVMdev] C++ to C
On Thu, 2006-11-16 at 21:08 -0800, Chris Lattner wrote: > On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote: > > After converting a piece of C++ code to C one of the functions that are > > generated is this: > > _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc > > This is defined in the C++ standard library. You can get the demangled > name like so: > $
2007 May 09
0
[LLVMdev] C back-end differences
On May 8, 2007, at 10:05 PM, Mohd-Hanafiah Abdullah wrote: > On Tue, 2007-05-08 at 11:58 -0700, Bill wrote: >> On 5/8/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: >>> How does the C back-end of LLVM differ from the one in gcc2c >>> developed >>> by SUN several years ago? >>> >> Hi Napi, >> >> For one, it converts
2006 Nov 05
0
[LLVMdev] Convert C++ to C. What is 0x0p+0 ?
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 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 ltmp_363_19; } else { goto
2007 May 08
1
[LLVMdev] C back-end differences
How does the C back-end of LLVM differ from the one in gcc2c developed by SUN several years ago? Thanks. Napi
2007 Sep 28
1
[LLVMdev] libstdc++ in LLVM bitcode
Need to know if anyone has compiled the libstdc++ to LLVM bitcode. If it's available please where could I download it from? Thanks. Napi
2007 Oct 02
2
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
I've read and followed the README.LLVM file that comes with LLVM-GCC 4.0 Front End source, but got the following error when compiling: configure: error: You must specify valid path to your LLVM tree with --enable-llvm=DIR make: *** [configure-gcc] Error 1 I've done the following in csh before hand: $ setenv LLVMOBJDIR /home/napi/proj/c2jvm/llvm/llvm-gcc/obj Where did I go wrong?
2006 Nov 17
0
[LLVMdev] C++ to C
On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote: > After converting a piece of C++ code to C one of the functions that are > generated is this: > _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc This is defined in the C++ standard library. You can get the demangled name like so: $ c++filt _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc std::basic_ostream<char,