Generating Dex files for Dalvik JVM
I have an application where I use ASM for dynamic bytecode generation and I
must say, ASM beats other bytecode engineering libraries in both simplicity,
easy-to-use-ness and performance!
Recently, I discovered Android and the Dalvik JVM as a potential platform for
porting my application to.
Unfortunately, the Dalvik JVM does not use the Java class file format, but its
own DEX file format.
Currently, I am not sure, but provided the code attribute of a method
definition stays the same between Dex file and the java class file (bytecode
instruction ids remain the same and the ordering of bytecode instructions
remain unchanged), would it be possible to extend ASM to correctly generate Dex
files?