JVM and I/O ! ?

I am an assembly language programmer. For speed's sake, I

would like to program in JVM code rather than compiling JAVA.

Now if I am writing a 3D game, how do I put pixels on the

screen in JVM? How do I read the mouse and keyboard?

I don't use API's or classes, just the minimum code necessary.

[327 byte] By [Virand] at [2007-9-27 20:17:12]
# 1

Pardon me for asking, but why?

If you are interested in eking out the last drop of performance by doing assembler, you are probably not interested in the extra layer a JVM inserts between you and the raw iron anyway.

And if it's bytecode you're referring to when you talk about assembler, I don't think bytecode is really comparable to "normal" compiled code anyway, since it's interpreted or JIT-compiled at runtime by the JVM.

I'm no bytecode expert, but I wouldn't be surprised to learn that a bytecode optimization on one platform would actually be a non-optimization on another platform, because of the way the JVM translates it to native code.

hhor at 2007-7-7 0:32:55 > top of Java-index,Other Topics,Java Game Development...
# 2
If you don't use API's, how do you expect to read or write to any devices?
JN_ at 2007-7-7 0:32:55 > top of Java-index,Other Topics,Java Game Development...