Skip to content

Latest commit

 

History

History
96 lines (76 loc) · 1.86 KB

File metadata and controls

96 lines (76 loc) · 1.86 KB

112101004 Amithabh A

Disclaimer

  • 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.

How to Execute?

  • 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>.s file.

    Example:

    test/input.s