Principles of Compilation - A Guide

This experiment is oriented to the course design of compiling principles at the undergraduate stage, and mainly uses lex&yacc to implement our custom compiler of a Tiny language.

1. Experimental content

The compilation experiment content of this semester is to implement a simple TINY language compiler. The input of this compiler is TINY language source code, and the output is a custom assembly language.

The whole compiler is divided into four parts: lexical analysis, syntax analysis, semantic analysis, and assembly code generation.

2. Experimental environment

Windows operating system, the integrated debugging environment adopts VC++ or vs 2010. The programming languages ​​are Lex scanner generator (Flex), Yacc analysis generator (Bison). Finally, a compiler for the TINY language is generated.

Guess you like

Origin blog.csdn.net/Barry_kk/article/details/121557415