Skip to content

Myongji University 2023-1 System Programming 1, Midterm Project

Notifications You must be signed in to change notification settings

JunseoHo/compiler-mcu-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Summary

This project is midterm project of 2023-1 system programming 1 in Myongji University.

This project consists of the following two subjects : Compiler, MCU.

Compiler is a module that can compile simple high-level language into machine code.
and consists of four modules:

  • Preprocessor : remove comments and empty lines from source code.
  • Lexer : analysis source code, create a symbol Table by dividing the source code into tokens.
  • Parser : based on the production rule, create a parse tree with tokens from the symbol table.
  • Generator : traverse the parse tree, generate machine code.

MCU is a virtual device that emulate the operation of computing hardware.
and consists of three modules:

  • CPU : fetch, decode, execute instructions from memory
  • Memory : store instructions and data
  • Loader : load program to Memory

Compiler Manual

compiler_help

MCU Manual

mcu_help

Execution examples

symbol_table parse_tree machine_code mcu

About

Myongji University 2023-1 System Programming 1, Midterm Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published