Hasty Briefsbeta

Bilingual

Rust to C compiler – 95.9% test pass rate, odd platforms

a year ago
  • #Compiler
  • #C
  • #Rust
  • Author will give a talk about the Rust to C compiler project during Rust Week in Utrecht, Netherlands.
  • Core test pass rate has improved to 95.9%, up from 92% two months ago.
  • Fixes implemented have also benefited the .NET side, with 96.3% of Rust core tests now running in .NET.
  • Discovered and fixed issues with 128-bit intrinsics, checked arithmetics, and subslicing.
  • Implemented emulation for 128-bit intrinsics like popcount by summing bits from lower and higher halves.
  • Fully implemented checked arithmetic operations for 128-bit integers, including overflow checks.
  • Fixed a subslicing bug where slice data pointer was offset incorrectly.
  • Leveraged Rust compiler's built-in emulation for certain intrinsics to avoid manual implementation.
  • Working on improving C compiler compatibility to support more platforms, including proprietary ones.
  • Optimized generated C code by using shorter integer literal forms and smarter debug info embedding.
  • Refactored rustc_codegen_clr for better incremental builds and memory efficiency.
  • Progressing towards a more streamlined IR by removing complex temporary scopes.
  • Planning to release part 2 of 'Rust panics under the hood' and a memory profiler for Rust.