[]
Inline bytecode
[ amor ] 11:23, Wednesday, 1 October 2003
Now, after having played around with C# and .Net for awhile I have to say that standard support for emiting bytecode is great. I'm aware of thirdparty tools that can do this in Java such as ASM and BCel however I would really like to have a standardized way in Java for including inline "assembly". Having coded assembly quite a bit in my younger years I would like to have access to the power it gives me for certain code optimizations. Case in point is the sorting of primitive arrays or optimization of loops (for an example in C# see the Programming C# book).
Comments

If you want inline assembly code, wouldn't this break one of the main objectives of Java, in that it's introducing processor specific code and making it non-portable? Anyway, that's what JNI is for, but using a suitable layer of abstraction to allow different implementations based on the VM being used.

If you really mean inline bytecode as in Java's bytecode, it won't help you much... and if you need that degree of optimisation in your code you need to either be coding in asm or purchasing a faster machine.

Lee

--Lee, October 1, 2003 03:29 PM

You could use something like Jasmin
http://mrl.nyu.edu/~meyer/jasmin/

--Chris Nokleberg, October 1, 2003 07:04 PM
Post a comment









Remember personal info?