similar to: [LLVMdev] (no subject)

Displaying 20 results from an estimated 5000 matches similar to: "[LLVMdev] (no subject)"

2006 Nov 21
2
[LLVMdev] libstdc++ as bytecode, and compiling C++ to C
Emil: I'm using LLVM 1.9 now. When I tried to do what you did I got the following though: $ llvm-g++ -emit-llvm -c x.cpp $ llvm-link -o=linked.o x.o std/*.o sup/*.o WARNING: Linking two modules of different target triples! WARNING: Linking two modules of different target triples! WARNING: Linking two modules of different target triples! ... $ lli linked.o lli((anonymous
2006 Nov 21
0
[LLVMdev] libstdc++ as bytecode, and compiling C++ to C
On Tue, Nov 21, 2006 at 05:33:32PM +0800, Mohd-Hanafiah Abdullah wrote: > Emil: > > I'm using LLVM 1.9 now. When I tried to do what you did I got the > following though: > > $ llvm-g++ -emit-llvm -c x.cpp > $ llvm-link -o=linked.o x.o std/*.o sup/*.o > WARNING: Linking two modules of different target triples! > WARNING: Linking two modules of different target
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
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
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 20
0
[LLVMdev] libstdc++ as bytecode, and compiling C++ to C
On Mon, 2006-11-20 at 17:49 +1100, Emil Mikulic wrote: > I've compiled all the object files that make up libstdc++ and libsupc++ > into LLVM bytecode: > http://goanna.cs.rmit.edu.au/~emil/libstdcxx.tar.bz2 (438KB) > > A simple test program, x.cpp: > > #include <iostream> > int main() { std::cout << "hello world\n"; return 0; } > > $
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?
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++
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 May 08
0
[LLVMdev] C back-end differences
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. As far as code quality, I don't believe it's been compared. -bw
2007 May 12
0
[LLVMdev] C back-end differences
On 11/05/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > I've been looking for a C++ to C translator for quite some time. > The purpose is to support C++ for the compiler I developed targeting the > JVM. But the compiler I wrote only supports ANSI C (1989). So the C++ > to C translator is needed, and among the options are as follows: > [...] > c) LLVM
2007 May 12
2
[LLVMdev] C back-end differences
On Fri, 2007-05-11 at 23:15 -0400, me22 wrote: > On 11/05/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > > I've been looking for a C++ to C translator for quite some time. > > The purpose is to support C++ for the compiler I developed targeting the > > JVM. But the compiler I wrote only supports ANSI C (1989). So the C++ > > to C translator is
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 Sep 28
0
[LLVMdev] libstdc++ in LLVM bitcode
On Fri, Sep 28, 2007 at 10:08:31AM +0800, Mohd-Hanafiah Abdullah wrote: > Need to know if anyone has compiled the libstdc++ to LLVM bitcode. If > it's available please where could I download it from? I did this last year. Check out: http://goanna.cs.rmit.edu.au/~emil/dietstdcxx.1.tar.bz2 --Emil
2007 Oct 02
0
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
On 10/2/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > 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
2007 Oct 02
1
[LLVMdev] Problem building LLVM-GCC 4.0 Front End
On Tue, 2007-10-02 at 11:47 -0700, Bill Wendling wrote: > On 10/2/07, Mohd-Hanafiah Abdullah <napi at axiomsol.com> wrote: > > 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 > >
2006 Nov 20
2
[LLVMdev] C++ to C
Mohd-Hanafiah Abdullah wrote: > On Fri, 2006-11-17 at 11:43 -0800, Chris Lattner wrote: > >> On Fri, 17 Nov 2006, John Criswell wrote: >> >>> I don't think you will need to deal with any names. The C++ standard >>> library has already been compiled to LLVM bytecode (it is part of the >>> llvm-gcc/llvm-g++ distribution). If you use
2006 Nov 20
4
[LLVMdev] libstdc++ as bytecode, and compiling C++ to C
I've compiled all the object files that make up libstdc++ and libsupc++ into LLVM bytecode: http://goanna.cs.rmit.edu.au/~emil/libstdcxx.tar.bz2 (438KB) A simple test program, x.cpp: #include <iostream> int main() { std::cout << "hello world\n"; return 0; } $ llvm-g++ -emit-llvm -c x.cpp $ llvmc -o=out x.o std/*.o sup/*.o $ lli out.bc Segmentation fault (core
2006 Nov 05
4
[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
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