3 ms·
I was actually asking about The Elements of Computing Systems in my comment, not Code. What language does it use to build a virtual computer?
by greymalik 4y ago
I was actually asking about The Elements of Computing Systems in my comment, not Code. What language does it use to build a virtual computer?
- localhost 4y agoYou program in HDL using the Nand2Tetris software suite [1]. Super fun - I went through the book on my vacation last year. Highly recommended. [1] https://www.nand2tetris.org/software https://www.nand2tetris.org/software
- ayushka 4y agoNand2tetris uses its own version of Hardware Description Language (HDL). You will also write a compiler for it's own language called Hack.
- BobLaw 4y agoQuoted from the 2021 edition: "Project 4 is written in the computer’s assembly language, and projects 9 and 12 (a simple computer game and a basic operating system) are written in Jack—the Java-like high-level language for which we build a compiler in chapters 10 and 11."
- virissimo 4y agoThe hardware exercises expect you to use a simple HDL, you write an assembler in your language of choice (I used Ruby, but others have used Python or JavaScript), and you write programs for the computer you "built" in earlier chapters using Jack (a language with Java-like syntax).
- cptnapalm 4y agoI wrote mine in awk :)