Lecture 2: Stack-based vs. Register-based VMs

  • Stack-based VM
  • Stack pointer
  • Constant pool
  • Java bytecode example
  • Python bytecode example
  • Compiler explorer tool
  • Register-based VM
  • Accumulator register