NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RVfplib: A Fast and Compact Open-Source Floating-Point Emulation Library for Tiny RISC-V Processors

Matteo Perotti, Giuseppe Tagliavini, Stefan Mach, Luca Bertaccini, Luca Benini

Abstract

Small, low-cost IoT devices rely on floating-point (FP) software emulation on 32-bit integer cores when the cost of a full-fledged FPU is not affordable. Thus, the performance and code size of the FP emulation library are decisive for meeting energy and memory-size constraints. We propose RVfplib, the first ISA-optimized open-source library for single and double-precision IEEE 754 FP emulation on RV32IM[C] cores. RVfplib is 59% smaller and 2 $$\times $$ faster than the GCC emulation library, on average. On benchmark programs, code size reduction is 39%, and performance boost 1.5 $$\times $$ . RVfplib is 5.3% smaller than the leading closed-source RISC-V commercial library.
BibTeX
@inproceedings{perotti2021rvfplib,
  author = {Matteo Perotti and Giuseppe Tagliavini and Stefan Mach and Luca Bertaccini and Luca Benini},
  title = {{RVfplib: A Fast and Compact Open-Source Floating-Point Emulation Library for Tiny RISC-V Processors}},
  booktitle = {SAMOS},
  year = {2021},
  doi = {10.1007/978-3-031-04580-6\_2},
}

Loading related content...

Figure