sampsyo / cs6120

advanced compilers
https://www.cs.cornell.edu/courses/cs6120/2023fa/
MIT License
709 stars 157 forks source link

[BLOG] Bril to RISC-V Lowering System #436

Closed jdroob closed 7 months ago

jdroob commented 7 months ago

Closes #407

jdroob commented 7 months ago

Update

I just remembered we have an assembler available to us in ECE 4750 that works on a subset of RV32I. Out of my own curiosity, I'm going to look into this. Some tweaks need to be made to get the assembler to accept the RISC-V programs we're currently producing (e.g. some directives may need to be injected into our asm files, we need to use the 'x' register names instead of the special names such as 'sp').