2026-04-30 12:56:19 +01:00
2026-03-26 13:16:10 +01:00
2026-03-30 15:59:50 +01:00
2026-04-30 12:56:19 +01:00

Jack VM Translator

This is a VM translator made as an assignment for the Nand To Tetris Course: Part 2.

Requirements

You need GCC and make to develop, build, and run this project.

Installation

  1. Clone this repo:
git clone https://github.com/hazemKrimi/jack-vm-translator
  1. To run this against VM files, run the following command with the path of the .vm file (or directory):
./out/vm-translator <path_to_vm_file_or_directory>

The result .asm file will be written in the same location as the source file.

Build

  • To build this project run the following command:
make
  • To build for release run the following command:
make MODE=release

You will find the executable in the out/ directory.

Testing

You can download VM files to test the translator against from the Nand To Tetris website.

S
Description
VM Translator from The Jack language to The Hack platform (Nand2Tetris Part 2).
Readme 81 KiB
Languages
C++ 97.2%
Makefile 2.8%