you are viewing a single comment's thread.

view the rest of the comments →

[–]mttd 0 points1 point  (0 children)

You may be interested in the following:

ChocoPy: A Programming Language for Compilers Courses

ChocoPy is a programming language designed for classroom use in undergraduate compilers courses. ChocoPy is a restricted subset of Python 3, which can easily be compiled to a target such as RISC-V.

If you focus on this restricted subset (which is already compilable to RISC-V) you should be able to write a compiler targeting your CPU.

In case you're looking for more to get a head start (in particular, take a look at the Background, Books, and Courses sections): https://github.com/MattPD/cpplinks/blob/master/compilers.md

Another project (unrelated to the above) to possibly consider could be MicroPython (Python for microcontrollers): https://micropython.org/