Skip to content

Java bytecode simulator_eac3

Karel Kubicek edited this page Feb 13, 2017 · 1 revision

Java bytecode simulator, a.k.a. JVMSimulator, is feature which can run parts of bytecode inside EACirc nodes.

How it works

During initialization JVMSimulator loads any java disassembled bytecode. Then if node is chosen to be a JVM node, JVMSimulator randomly choose part of loaded bytecode and put reference, to this part, inside node. JVM node execution starts with pushing all input data onto stack and loading reference to part of bytecode which will be evaluate. After evaluating all instructions, returns number which has been produced by xoring values from stack.

Configuration

  • To turn on JVM nodes set EACIRC/GATE_CIRCUIT/ALLOWED_FUNCTIONS/FNC_JVM to 1

Clone this wiki locally