Re:Implementing a LLVM Micro C compiler in Haskell
by randomifcpfan on Friday June 04, 2021 @09:27PM
(#27401094)
Small-C was the best one with open source, but there were many others. This one was my favorite: https://www.bdsoft.com/resources/bdsc.html
[ Parent
| on HN ]
Re:Implementing a LLVM Micro C compiler in Haskell
by pjmlp on Saturday June 05, 2021 @01:00AM
(#27402358)
What I got back in the day came in book form, it was also another flavour.
"A book on C"
https://link.springer.com/book/10.1007/978-1-349-10233-4
It uses a K&R C subset with bytecodes and a bytecode-> machine language translation.
I just never bothered to type it in though.