112101004 Amithabh A
- The assignment-4 tagged commit will only work on assignment 3 testcases
- Code generation happens for declaration statements and main program(including
return 0), but not happens for other statements.
-
Go to compiler directory
cd compiler -
To generate compiler, run
make -
Now, the compiler is generated in
bin/compiler. -
To run compiler on an input .sil file, run
./bin/compiler <relative-path-to-input-sil-file>Example:
./bin/compiler test/input.sil -
The assembly code will be generated in
<relative-path-to-input-sil-file>.sfile.Example:
test/input.s