byte code?

I have to write my own provider for sun's JCE... for performance, i was asked to write some part in "byte code" ... is it possible? never heard about that... and i found nothing in java doc about that... if someone can help me?thanks
[262 byte] By [mrraph] at [2007-9-26 12:23:38]
# 1

I can't help but think someone is pulling your leg. The Java compiler converts Java source to byte code. In the old days, programmers occasionally wrote critical parts of their application in machine language for performance reasons, which I guess is the moral equivalent of byte code. Those days are fortunately over.

If you really need the additional performance you should make sure to do a JIT or Hotspot compile. Your only other option is to write it in C as a native method and do the JNI integration.

gshifrin at 2007-7-2 3:03:13 > top of Java-index,Security,Cryptography...
# 2

Yes you could write your application using bytecode. I can think of only one assembly tool that did so but it has not been updated for a few years and may be out of date. The name of the tool is Jasmin and can be found at the following at http://mrl.nyu.edu/~meyer/jvm/. However, this will require you to write an entire class or set of classes using bytecode, it does not allow you to mix Java and bytecode together.

The only other alternative is to gain an understanding about the Java class file format so that you could modify the bytecode of critical methods for optimum performance. Check out the Java Virtual Machine Specification for more information.

There are also several tools designed to create class files (without a compiler), modify existing class files, and read class files. One of the better tools is called the Bytecode Engineering Library and can be found at http://bcel.sourceforge.net/. You could use this, along with a good understanding of bytecode, to modify the bytecode of any class.

skanjo at 2007-7-2 3:03:13 > top of Java-index,Security,Cryptography...
# 3
I also think some one is pilling your leg, but iam sure it would be possibel to write something like that in assembler, but i think it would be very time consuming
fergal2001 at 2007-7-2 3:03:13 > top of Java-index,Security,Cryptography...
# 4
Nope, they're not pulling your leg. It appears that you can write raw bytecodes (equivalent of writing asm) I don't remember the name of the program used to do that though. Also I don't know if it will provide a significant improvement in performance (like with asm).
Kayaman at 2007-7-2 3:03:13 > top of Java-index,Security,Cryptography...