This project consists of two main components: a C-compiler focusing on while
loops and a SIC (Simplified Instructional Computer) assembler. The C-compiler translates C code with while
loops into an intermediate representation, while the SIC assembler converts SIC assembly code into object programs.
-
C-Compiler:
- Focuses on parsing and interpreting
while
loops in C code. - Includes syntax analysis, intermediate code generation, and LR parsing.
- Focuses on parsing and interpreting
-
SIC Assembler:
- Reads SIC assembly code, generates symbol tables, and produces object programs.
- Includes example SIC assembly programs and the assembler source code.
For more detailed information on each component, please refer to the respective README files:
To get started with the project, you can follow the instructions provided in the individual README files for compiling and running the C-compiler and SIC assembler.
This project provides a comprehensive example of a C-compiler focusing on while
loops and a SIC assembler. By following the provided documentation, you can understand the structure and functionality of each component and run the provided examples.