multiplefiles

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

multiplefiles

lyre
Hello, im wondering how the organization of multiple .vm files into a single assembly program works.
Im unfamiliar with java and oop. Only know a little python.
Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: multiplefiles

cadet1620
Administrator
Your VM translator needs to accept either a file or a directory as its argument. If a file is specified, it translates only that file into assembly language. If a directory is specified, all the .vm files in the directory are translated into a single .asm file.

For chapter 8, your final VM translator also has to first write "bootstrap" code to the .asm output and then append the translation of the .vm files.

I wrote my VM translator in Python. If you need help with Python you can email me at
.

--Mark