This Linux program can translate C-- Codes into MIPS32 Assembly Language.
Steps:
- Lexical Analysis: Identify lexical unit
- Parsing: Analyze a sentence into its parts and describe their syntactic roles
- Semantic Analysis: According to C-- Grammar, check syntax errors
- Generate Intercode: Translate C-- codes to Three-Address codes
- Generate MIPS Codes: Translate intercodes to MIPS32 codes
- Run the codes on Simulator SPIM
Share, Learn and No Plagiarism