Skip to content
Open access

Improving Indirect Branch Prediction in Interpreters via Hardware/Software Co-Design

Jul 2026 · IEEE computer architecture letters · Vol 25, pp. 419-422 · 0 citations · 17 references
Computer Science

TL;DR

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 is proposed.

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 <inline-formula><tex-math notation="LaTeX">$\sim$</tex-math><alternatives><mml:math><mml:mo>∼</mml:mo></mml:math><inline-graphic xlink:href="zheng-ieq1-3738406.gif"/></alternatives></inline-formula>50 lines of CPython code. On 15 CPython server workloads, a 14 KB ITTAGE augmented with the engine reduces bytecode jump MPKI by <inline-formula><tex-math notation="LaTeX">$73.7$</tex-math><alternatives><mml:math><mml:mrow><mml:mn>73</mml:mn><mml:mo>.</mml:mo><mml:mn>7</mml:mn></mml:mrow></mml:math><inline-graphic xlink:href="zheng-ieq2-3738406.gif"/></alternatives></inline-formula>% relative to a 16 KB ITTAGE baseline, yielding a <inline-formula><tex-math notation="LaTeX">$3.2$</tex-math><alternatives><mml:math><mml:mrow><mml:mn>3</mml:mn><mml:mo>.</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:math><inline-graphic xlink:href="zheng-ieq3-3738406.gif"/></alternatives></inline-formula>% harmonic-mean IPC speedup.

Read PDF

Similar papers

Book Open access Sep 2026

Quantifying the Code-Size Overhead of eBPF JIT Compilation

eBPF allows user-defined programs to safely extend Linux kernel functionality at runtime, but its final machine code comes from a compilation pipeline that differs from native targets, and how efficient that pipeline is has no clear reference point. Our work constructs one: using the standard LLVM x86 backend as an app...

Hoang Duong, Hao Sun, Zhen-Dong Su · 0 citations
Open access Oct 2026

Energy-Efficient SIMD-Accelerated Expression Parsing: A Cross-Architectural Microarchitectural Analysis in Managed Environments

Mathematical expression evaluation is a critical component in high-performance software systems. Traditional state-dependent algorithms resist Single Instruction, Multiple Data vectorization, while managed runtime environments introduce Garbage Collection overhead. This paper presents a hybrid parsing pipeline that iso...

P. Kyurkchiev, A. Iliev · 0 citations
Book Open access Sep 2026

Schedules Are Solvable Symbols: Tuning-Free Compilation of Tile Programs on Dataflow Architectures

Loom, a tuning-free symbolic compiler framework for tile-based SPMD programs on spatial dataflow architectures, is presented, suggesting that hardware-derived symbolic compilation provides a retargetable alternative to profiling-based tuning for spatial dataflow architectures while remaining interpretable by keeping op...

He-Ru Wang, Wei Li, Zhen-Yu Bai et al. · 0 citations
Open access 2026

Deployment-Oriented Evaluation of LLM-Generated Optimization Code: Repairability, Compatibility, and Constraint-Coverage in Parallel-Machine Scheduling

GenSE-Scheduler, a deployment-oriented framework for evaluating LLM-generated parallel-machine scheduling code, compares monolithic schedulers with four-stage modular pipelines under typed contracts, sandboxed execution, a failure taxonomy, stage-swap repair, and pre-composition compatibility prediction.

Achraf Ghorbel, Nourchène Elleuch Ben Ayed, Keletso J. Letsholo et al. · 0 citations
Book Open access Sep 2026

LMTracer: Fine-Grained and Real-Time Performance Profiling for Production LLM Systems

LMTracer is presented, a fine-grained and real-time performance profiling framework for production LLM services that embed profiling logic into the execution through graph-embedded probing and streaming buffered profiling data to CPUs on demand to keep the execution of user kernels uninterrupted.

Wei Liu, Yong-Chao He, Bo-Han Zhao et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.