Post Reply 
monic part 6: the mC programming language and compiler
07-05-2022, 04:46 AM
Post: #17
RE: monic part 6: the mC programming language and compiler
I've added clear_disp() and print() functions to display the digits of pi as the program runs. Below are the first 1000 digits of pi. The first screen takes about 7 seconds to fill and the second screen about 2 seconds.

[Image: 52193812897_ca2f8d7e0a.jpg][Image: 52195080604_45a1740217.jpg]

The bytecode compiler is now fairly complete, so I've started thinking about writing a compiler that translates programs into native ARM assembly. I'll try the approach covered in several compiler texts: traverse the abstract syntax tree to create 3-address code, then use the 3-address code to generate the assembly code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: monic part 6: the mC programming language and compiler - F-73P - 07-05-2022 04:46 AM



User(s) browsing this thread: 1 Guest(s)