Gigue: A JIT Code Binary Generator for Hardware Testing - Archive ouverte HAL Accéder directement au contenu
Communication Dans Un Congrès Année : 2023

Gigue: A JIT Code Binary Generator for Hardware Testing

Résumé

Just-in-time compilers are the main virtual machine components responsible for performance. They recompile frequently used source code to machine code directly, avoiding the slower interpretation path. Hardware acceleration and performant security primitives would benefit the generated JIT code directly and increase the adoption of hardware-enforced primitives in a high-level execution component. The RISC-V instruction set architecture presents extension capabilities to design and integrate custom instructions. It is available as open-source and several capable open-source cores coexist, usable for prototyping. Testing JIT-compiler-specific instruction extensions would require extending the JIT compiler itself, other VM components, the underlying operating system, and the hardware implementation. As the cost of hardware prototyping is already high, a lightweight representation of the JIT compiler code region in memory would ease prototyping and implementation of new solutions. In this work, we present Gigue, a binary generator that outputs bare-metal executable code, representing a JIT code region snapshot composed of randomly filled methods. Its main goal is to speed up hardware extension prototyping by defining JIT-centered workloads over the newly defined instructions. It is modular and heavily configurable to qualify different JIT code regions' implementations from VMs and different running applications. We show how the generated binaries can be extended with three custom extensions, whose execution is guaranteed by Gigue's testing framework. We also present different application case generation and execution on top of a fully-featured RISC-V core.
Fichier principal
Vignette du fichier
Gigue a JIT Code Binary Generator for Hardware Testing.pdf (1.02 Mo) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04469651 , version 1 (08-04-2024)

Identifiants

Citer

Quentin Ducasse, Pascal Cotret, Loïc Lagadec. Gigue: A JIT Code Binary Generator for Hardware Testing. VMIL, Oct 2023, Cascais, Portugal. ⟨10.1145/3623507.3623553⟩. ⟨hal-04469651⟩
14 Consultations
0 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More