RFC: LoongArch backend for SBCL
王子龙 <[email protected]>
| Newsgroups | gmane.lisp.steel-bank.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I am working on adding support for the LoongArch architecture to SBCL and would like to ask for early feedback before submitting patches. Target: - Architecture: LoongArch64 - OS: Linux - ABI: LoongArch ELF psABI Current status: - Backend skeleton is in place - Register set and calling convention are defined - Basic VOPs are implemented - Runtime context handling (sigcontext, PC/GPR access) is implemented - SBCL can be built natively on LoongArch Linux - Basic tests run; some failures remain Tested on: - LoongArch64, Linux kernel 6.3+, glibc 2.36 - GCC 14.2.1, native build - SBCL bootstraps successfully Implementation approach: - Backend structure follows the existing MIPS and RISC-V ports - Instruction selection and ABI closely follow the official LoongArch ABI - Runtime support is implemented in src/runtime/ Next steps: - Clean up the backend and split changes into logical patches - Submit the port incrementally (backend skeleton, ABI, codegen, runtime) - Address remaining test failures Before sending patches, I would appreciate any guidance on: - Preferred patch ordering - Any architectural concerns specific to SBCL backends Thank you for your time and feedback. Best regards, ZiLong Wang _______________________________________________ Sbcl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sbcl-devel