Last article we were compiling Rust Apps for NuttX QEMU (RISC-V 32-bit). And we hit a baffling error…
"Can't link Soft-Float modules with Double-Float modules" Let’s solve the problem! In this article we dive inside the internals of C-to-Rust Interop… (1) Rust compiles for Soft-Float, NuttX expects Double-Float (Software vs Hardware Floating-Point) (2) But Rust doesn’t support Double-Float (by default) (3) So we create a Rust Custom Target for Double-Float (4) Rebuild the Rust Core Library for Double-Float (5) And our Rust App builds OK with NuttX! Here's how: https://lupyuen.codeberg.page/articles/rust4.html Lup