search for: putint

Displaying 2 results from an estimated 2 matches for "putint".

Did you mean: puting
2016 Jul 19
3
A "Java Backend"
...e system call layer. The caveat here is that Java has this "private" but-not-really-in-practice API called sun.misc.Unsafe that can be used to access native memory. So you can have (I'm paraphrasing, the method names may not match): long addr = unsafe.allocateMemory() unsafe.putInt(addr + 48, 9001); int val = unsafe.getInt(addr + 48); etc. You may even get decent performance out of this since JIT compilers tend to have to optimize these well (they're commonly uses in the implementation of some popular JDK classes). But you're right that it will still be difficul...
2016 Jul 19
5
A "Java Backend"
My idea was to create a complete backend treating Java as a normal platform, to enable LLVM to compile programs to Java Bytecode (.class) and Java Archive files (.jar). This could be useful in situations where we need to compile a program for a platform still not natively supported by LLVM. I don't know if it exists already, I've heard about this "LLJVM" but I don't think it