How to compile JVM assembly code into bytecode?

If I run javap -c ASM.class > ASM.javato get the assembly code, how would I recompile it back to the JVM bytecode?

+5
source share
2 answers

Jasmin is an assembler for Java bytecodes. However, I don't know if it can handle the exit from javap.


UPDATE

The Jasmin documentation says this javapoutput:

Sun provides a javap program that can print assembly code in a class file. However, javap output is not suitable for use as an assembler format. It is intended for human reading, and not for analysis by assembler, so it has a number of omissions and shortcomings.

, , , javap .

+5

ASM,

-2

All Articles