search for: llcj

Displaying 20 results from an estimated 31 matches for "llcj".

Did you mean: llc
2012 Jun 29
0
[LLVMdev] Error using llcj
I tried to compile helloworld program using llcj to native but i got the following error shyam at shyam:~$ cat hello.javaclass hello { public static final String str = "Hello Word"; public static void main(String[] args) { System.out.println(str); }}shyam at shyam:~$ llcj --main=hello hello.class -o hellollc: Unknown command li...
2009 Dec 08
2
[LLVMdev] How to run vmjc created .bc files?
Hi, Thanks a lot for the help! I am getting some errors though: I am on a 32 bit chroot on a x86_64 system. Thus llc guesses the wrong architecture from the module bitcode and spits out x86_64 assembly. I fixed this by adding "-march=x86" to the llc options in llcj. gcc doesn't know what -lgc is. I'm guessing it is the garbage collection library. How can I get it or point gcc to the right library? llcj -mem2reg MemberVar.class /usr/bin/ld: cannot find -lgc collect2: ld returned 1 exit status If I have class files that depends on other class files,...
2009 Dec 09
2
[LLVMdev] How to run vmjc created .bc files?
...lot for the help! I am getting some errors though: > > I am on a 32 bit chroot on a x86_64 system. Thus llc guesses the > wrong architecture from the module bitcode and spits out x86_64 > assembly. I fixed this by adding "-march=x86" to the llc options > in llcj. > > > OK. > > > > gcc doesn't know what -lgc is. I'm guessing it is the garbage > collection library. How can I get it or point gcc to the right > library? > > > -lgc is for the boehmgc in case you configured vmkit to use it. Since > yo...
2009 Dec 08
0
[LLVMdev] How to run vmjc created .bc files?
...> > Thanks a lot for the help! I am getting some errors though: > > I am on a 32 bit chroot on a x86_64 system. Thus llc guesses the wrong > architecture from the module bitcode and spits out x86_64 assembly. I fixed > this by adding "-march=x86" to the llc options in llcj. > OK. > > gcc doesn't know what -lgc is. I'm guessing it is the garbage collection > library. How can I get it or point gcc to the right library? > -lgc is for the boehmgc in case you configured vmkit to use it. Since you don't need it (vmkit uses its own gc by defau...
2013 Apr 10
1
[LLVMdev] LLCJ - VMKIT
Is llcj in working order? I read a while back that it had rotted. How can I help if so? I'd like to get it in working order and will pitch in my time to help get it back to a good state. -- Thanks, Ryan Fairchild -------------- next part -------------- An HTML attachment was scrubbed... URL: <h...
2012 Jun 27
0
[LLVMdev] Error using llcj
When i tried to compile hello.class using llcj . I am currently using llvm-3.1 , gnu classpath-0.97.2 and vmkit I am getting the following error shyam at shyam:~$ llcj -S hello.classllc: Unknown command line argument '-f'. Try: '/home/shyam/llvmbuild/Release+Debug+Asserts/bin/llc -help'llc: Did you mean '-O'? can anyo...
2009 Dec 08
0
[LLVMdev] How to run vmjc created .bc files?
Hi Michael, Currently, you can run vmjc created .bc files by statically linking them with all the .o needed files. For that, you can use the llcj tool, which works more or less like GCC's gcj tool. Note that you also need to create the libvmjc.so file, which contains the standard library in native form. Do a make in the tools/vmjc/libvmjc directory. Once this is done, update the LD_LIBRARY_PATH shell variable to contain this file, and u...
2009 Dec 08
0
[LLVMdev] running passes from LLCJ
Hi, How can I run passes I've written or other standard passes through LLCJ? Or do I have to do it manually? Michael
2012 Jun 29
0
[LLVMdev] llcj : Error
When i tried to compile hello.class to executable the llcj --main=hello hello.class -o hello i got the following error /usr/bin/ld: error: cannot find -lAllocator/usr/bin/ld: error: cannot find -lGCMmap2/usr/bin/ld: error: cannot find -lvmjc/usr/bin/ld: error: cannot find -lLLVMSystem Where can i get the libraries related to Allocated , GCMmap2 , vmjc and...
2012 Jul 09
1
[LLVMdev] Error generating a executable using llcj
I installed vmkit-0.29 and tried to generate a executable using llcj I generated the libvmjc and updated the library path export LD_LIBRARY_PATH=$(VMKIT_OBJ)/Release/lib llcj --main=hello hello.class -o hello but i am getting the following error /home/shyam/classpath-0.97.2/lib/vmkit/Release+Debug/lib/libvmjc.a(glibj.zip.o): In function `JnJVM_sun_misc_Unsafe_putLon...
2009 Dec 06
2
[LLVMdev] How to run vmjc created .bc files?
Hi, What do I need to link with vmjc created .bc files to actually run the .bc file? I tried running with lli but only got: LLVM ERROR: Program used external function 'StartJnjvmWithoutJIT' which could not be resolved! Thanks, Michael
2014 Sep 09
2
[LLVMdev] VMKit is retired (but you can help if you want!)
...-to-LLVM compiler working for my purposes, I'll be happy to maintain at least this part of the VMKit project. To that end, I have exactly one fundamental question to start: How do you suggest to perform Java-to-LLVM compilation using VMKit? Here are my thoughts on this: It looks like the `llcj` tool (VMKit/tools/llcj/llcj.cpp) was meant for this; it declares itself as "Java to native compiler" but it appears that it hasn't been maintained (e.g., deprecated interfaces, no-longer-existent command-line options and libraries). `llcj` is described in Appendix A of Geoffray's...
2014 Mar 07
2
[LLVMdev] Running VMKit's AOT Java Compiler
Hi, I'm new to VMKit and I'm trying to use its AOT Java compiler but I'm immediately getting an error message which I don't understand. Everything was compiler as suggested in the Getting Started tutorial, using GNU Classpath. I try to run: llcj ../../tools/trainer/Release+Asserts/HelloWorld.class and get the following output: Can not materiale a function in AOT mode.0 vmjc 0x0000000000f2cea5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37 1 vmjc 0x0000000000f2d363 2 libpthread.so.0 0x00007f4fbbe83880 3 libc.so...
2014 Sep 09
2
[LLVMdev] VMKit is retired (but you can help if you want!)
Oups, sorry for the mistake, llcj (not llc:)) is not more maintained! Gaël Le 10 sept. 2014 00:27, "Gaël Thomas" <gael.thomas00 at gmail.com> a écrit : > Hi Brian, > > So, I confirm, llc is not more maintained. And using vmjc is probably > the good starting point to translate Java bytecode into llvm bi...
2010 Jul 20
0
[LLVMdev] Fwd: Building VMKit
...red) to get the virtual table of the object and put the indirect call instruction in place (ie it will not get lowered). Or a single runtime call that will get lowered to both getting the virtual table and do the indirect call. > > What about something like a --emit-unlowered-llvm option on llcj that just > spits out the LLVM IR before running this lowering pass? > Yes, that's what I had in mind. llcj is just a driver here for VMKit, the real executable is vmjc, to which you can give a number of passes, including your pass that will lower your virtual call. > >> LLVM...
2010 Jul 20
4
[LLVMdev] Fwd: Building VMKit
Hi Minas, I tried recompiling Classpath with -fno-omit-frame-pointer, and now, instead of printing an error message, j3 just segfaults in "j3::JnjvmClassLoader::loadClassFromAsciiz(char const*, bool, bool) ()" I ran llcj under strace and found that it is not even opening the input or output files, but is otherwise running normally. Updating to the latest SVN version (revision 108831) didn't change anything (I was only a few days out of date). I'm not sure where to go from here. Does this fit with any of...
2010 Jul 20
2
[LLVMdev] Fwd: Building VMKit
...common practice to emit function calls that are expected to be lowered by a later pass? I know LLVM uses this kind of thing with intrinsics (llvm.gcroot, for instance), but a pass lowering calls to specific functions seems very... messy. What about something like a --emit-unlowered-llvm option on llcj that just spits out the LLVM IR before running this lowering pass? > >> * Access to stack maps at GC safe points >> >> > LLVM/VMKit already has it: VMKit uses the OCaml GC in LLVM to generate > stack maps in the executable. > > >> * Access to unwind tables &...
2010 Jul 20
0
[LLVMdev] Fwd: Building VMKit
...joshuawarner32 at gmail.com>wrote: > Hi Minas, > > I tried recompiling Classpath with -fno-omit-frame-pointer, and now, > instead of printing an error message, j3 just segfaults in > "j3::JnjvmClassLoader::loadClassFromAsciiz(char const*, bool, bool) ()" > > I ran llcj under strace and found that it is not even opening the input or > output files, but is otherwise running normally. > > Updating to the latest SVN version (revision 108831) didn't change anything > (I was only a few days out of date). > > I'm not sure where to go from here....
2010 Jul 19
1
[LLVMdev] Fwd: Building VMKit
...---------- From: Joshua Warner <joshuawarner32 at gmail.com> Date: Mon, Jul 19, 2010 at 10:19 AM Subject: Re: [LLVMdev] Building VMKit To: nicolas geoffray <nicolas.geoffray at gmail.com> Thanks Nicolas, that worked great! Now, I'm having trouble invoking the compiler properly: $ llcj Hello.class -o=Hello.ll $ cat Hello.ll cat: Hello.ll: No such file or directory $ j3 Hello j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class when a...
2010 Jul 19
0
[LLVMdev] Fwd: Building VMKit
...arner32 at gmail.com> > Date: Mon, Jul 19, 2010 at 10:19 AM > Subject: Re: [LLVMdev] Building VMKit > To: nicolas geoffray <nicolas.geoffray at gmail.com> > > > Thanks Nicolas, that worked great! > > Now, I'm having trouble invoking the compiler properly: > $ llcj Hello.class -o=Hello.ll > $ cat Hello.ll > cat: Hello.ll: No such file or directory > $ j3 Hello > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): > Assertion `(this->isInitializing() || > classLoader->getCompiler()->isStaticCompiling()) && &q...