Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling C-Type Grammar to Custom Assembly

The title pretty much sums it up. I have a homemade CPU with my assembly language called scratchy that I'd like to write code for more effectively, but I imagine there MUST be a smart place to start.

like image 543
Morgan Freeman Avatar asked May 22 '13 07:05

Morgan Freeman


1 Answers

As well as LLVM, as suggested in a comment by @SK-logic, you might want to look at the portable C compiler (pcc), which is possibly simpler to write a backend for.

Good luck!

like image 137
rici Avatar answered Sep 19 '22 11:09

rici