Re: [Article] Rust Custom Target for QEMU RISC-V on NuttX
Thanks Alan! The green phosphor display comes from the "cool-retro-term" Terminal Emulator, I used the Apple II settings :-) https://github.com/Swordfish90/cool-retro-term Lup On Sun, Apr 21, 2024 at 7:01 AM Alan C. Assis wrote: > Hi Lup, > > Nice article! I enjoyed that green phosphor effect, how did you do it? > > Best Regards, > > Alan > > On Sat, Apr 20, 2024 at 7:41 PM Lee, Lup Yuen wrote: > > > 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 > > >
Re: [Article] Rust Custom Target for QEMU RISC-V on NuttX
Hi Lup, Nice article! I enjoyed that green phosphor effect, how did you do it? Best Regards, Alan On Sat, Apr 20, 2024 at 7:41 PM Lee, Lup Yuen wrote: > 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 >
[Article] Rust Custom Target for QEMU RISC-V on NuttX
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