mist64 / cbmbasic

cbmbasic, a portable version of Commodore's version of Microsoft BASIC 6502 as found on the Commodore 64
446 stars 66 forks source link

How was generated the code? #6

Open daitangio opened 4 years ago

daitangio commented 4 years ago

How was generated the C code? IWas it pre-processed some way? It would be useful to know it a bit.

jduerstock commented 2 years ago

Is this "static recompiler" used to produce this available anywhere, or at least some hint as to go about making one of my own?

mist64 commented 2 years ago

Okay, I finally uploaded my old static recompiler that was used to create this.

https://github.com/mist64/static6502

I then used LLVM to take the C code, optimize it and spit out C source again. Today, you would need llvm-cbe to do this part.