Improving Indirect Branch Prediction in Interpreters via Hardware/Software Co-Design
Abstract
Interpreters have a large indirect-branch footprint, requiring large predictor capacity for accurate prediction. We propose a hardware/software co-design in which a hardware lookahead engine, running ahead of the pipeline with software-provided bytecode metadata, supplies interpreter dispatch targets to the frontend. The engine requires only 1.3 KB of on-chip storage and changes to about 50 lines of CPython code. On 15 CPython server workloads, a 14 KB ITTAGE augmented with the engine reduces bytecode jump MPKI by 73.7% relative to a 16 KB ITTAGE baseline, yielding a 3.2% harmonic-mean IPC speedup.
Create a lesson
Metadata
- Comments
- 4 pages, 4 figures, 3 tables. Accepted for publication in IEEE Computer Architecture Letters
Related papers
Sattva: A Hardware-Algorithm Co-Designed SAT Solving Accelerator with Off-Chip Scalability
Shared title terminologycs.ARHuifeng Ke, Michael Lo, Justin Oh et al.
VeSGA: Microsecond, Microjoule Hyperdimensional Graph Classification through Algorithm-Hardware Co-Design
Shared title terminologycs.ARAhmad Tahmasivand, Hamed Poursiami, Guojing Cong et al.
NoP Generator: Package-Aware Co-Design of Chiplet Systems
Shared title terminologycs.ARYishan Zhang, Lei Shen
EdgeALM: An Efficient and Unified Edge Accelerator for Large Audio Language Models via Full-Stack Hardware-Software Co-Design and Agent-Driven Recursive Optimization
Shared title terminologycs.ARChenglin Yang, Feifan Xu, Xingyuan Li et al.
Motivo: A Motif-Based Algorithm-Architecture Co-Design for Fast and Energy-Efficient Graph-Based Genome Analysis
Shared title terminologycs.AREirini Maria Tzermpou, Konstantina Koliogeorgi, Konstantinos Kanellopoulos et al.
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminologycs.ARWajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.