GHC’s RISC-V Native Code Generation Backend
summary
GHC gains a RISC-V Native Code Generator that lands in the tree (merged last summer and tracked as GHC 9.12 merge), complements the earlier LLVM backend, and provides static linking via an RTS linker and a working cross-compiler path; current targets are rv64g plus compressed instructions and the backend passes the full compiler test-suite passing minus SIMD. SIMD/vector support is work in progress (vsetvl based reconfigurable vectors discussed), hardware scarcity keeps RISC-V at tier three, and practical CI/debugging tricks and build-farm patches are documented.
AI-written summary · about
chapters (7)
- 0:00RISC-V architecture intro
- 3:01RISC-V hardware and tools
- 10:15RISC-V support history in GHC
- 12:44GHC RISC-V backend status
- 14:52RISC-V vector registers
- 22:02Future RISC-V backend tasks
- 24:10Q&A on vector mapping
related talks
28mLLVM for RISCV
16mImprovements to RISC-V Vector code generation in LLVM
24mRISC V LLVM: Towards A Production-Ready LLVM-Based Toolchain
21mProduction ready RISC V Support in LLVM Clang 9
21mOpen Source Compiler Tool Chains for RISC V Past, Present and Future
20mRISC V Software State of the Union
18mPreview RISC-V GCC Features and Optimization Improvements for GCC-14
18mGPU Program Support on RISC-V GPU
