Question:
Is the a java compiler i can use to compile to windows machine language instead of java bytecode?
Taylor
2011-08-05 20:34:48 UTC
i want to find a compiler to compile my java programs to windows machine language instead of java byte code
the reason is to compile the source code of minecraft to a different language so i can compile the code to windows language so it will be less laggy because jvm wont have to inturpret
Three answers:
McFate
2011-08-05 21:19:12 UTC
The terminology for what you're looking for is a "cross-compiler." Here's one that supposedly can produce C++ from Java bytecode:



http://blogs.4point.com/taylor.bastien/2009/11/cross-compiling-javacruby-to-iphone.html



Note, though that they mention that the generated source is "non-optimal," so it may not entirely solve your performance issues.
Silent
2011-08-06 04:37:26 UTC
McFate is right; what you're looking for is a cross-compiler.



However, I would like to point out that there is no such thing as "windows machine language". Machine languages are associated with processor architectures, not with operating systems, which are a much higher level concept. What you probably mean is x86 machine language. x86 and x86-64 are the most common processor architectures for personal computers.



Also, I'd be curious to hear how you know that it's the JVM that's causing your performance problems. No offense, but realistically there is a much greater chance that the problem is somewhere in your own code.
2011-08-06 04:49:43 UTC
so... i'm curios as why you want a lawsuit on your ***


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...