Trace-Based Bytecode Interpreter Visualization for Compiler Construction Education

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

Abstract

Enhancing students’ comprehension of bytecode generation and its interpretation is crucial, yet challenging, in compiler construction courses. Traditional approaches often emphasize theoretical concepts, making it difficult for students to grasp the inner workings of bytecode interpreters.To bridge this gap, we introduce a web-based tool for trace-based bytecode interpreter visualization, designed to enhance comprehension by providing an interactive and visually enriched learning experience. Our tool provides a side-by-side view that aligns the original high-level source code and its corresponding low-level bytecode, with arrows indicating jumps and method calls. Users can step through the executed bytecode (forwards and backwards) to see the effect of each operation. A dynamic memory visualization utilizes animations to illustrate changes in the interpreter’s various memory regions and its registers. To further increase the flexibility of our tool, we developed a lightweight metalanguage that enables educators to define visualizations for arbitrary bytecode formats.Our tool aims to bridge the gap between abstract theory and concrete execution. We demonstrate its effectiveness in various educational settings, e.g., how it can help educators improve their live teaching and how it facilitates student self-study.
Original languageEnglish
Title of host publication2025 IEEE Working Conference on Software Visualization (VISSOFT)
PublisherIEEE
Pages13-24
Number of pages12
Edition1
ISBN (Electronic)979-8-3315-9517-3
ISBN (Print)979-8-3315-9518-0
DOIs
Publication statusPublished - 30 Sept 2025
Event2025 IEEE Working Conference on Software Visualization (VISSOFT) - Auckland, New Zealand
Duration: 07 Sept 202508 Sept 2025

Conference

Conference2025 IEEE Working Conference on Software Visualization (VISSOFT)
Period07.09.202508.09.2025

Fields of science

  • 102 Computer Sciences
  • 102009 Computer simulation
  • 102013 Human-computer interaction
  • 102011 Formal languages
  • 102022 Software development
  • 102029 Practical computer science
  • 102024 Usability research

JKU Focus areas

  • Digital Transformation

Cite this