What Java code will force javac 1.6 to use the 'swap' and 'nop' opcodes?

后端 未结 1 1512
时光说笑
时光说笑 2020-12-20 15:51

I\'m working on an amateur JVM implementation, and I\'m trying to make sure I have test coverage for all of the opcodes in the spec. I\'ve gotten it down to the last few, bu

1条回答
  •  独厮守ぢ
    2020-12-20 16:08

    None. The Java Language Specification does not provide such guarantees. You can just write your own Java bytecode using Jasmin (a bytecode assembler).

    0 讨论(0)
提交回复
热议问题