Skip to main content

Table 5 Execution time of simple bytecodes in cycles.

From: Time-Predictable Computer Architecture

Instruction

Cycles

Funtion

iconst_0

1

load constant 0 on TOS

bipush

2

load a byte constant on TOS

iload_0

1

load local variable 0 on TOS

iload

2

load a local variable on TOS

dup

1

duplicate TOS

iadd

1

integer addition

isub

1

integer subtraction

ifeq

4

conditional branch