This was a course in my Level 3 Term 1.The name clearly suggests this is a course on Compiler. We were given four assignments that gradually builds a C compiler using various tools like YACC,BISON.
A Symbol Table management was developed from scrach in C++
Lexical Analyser was built using YACC.
The parsed token in Lexical Analyser was combined with BISON to build a Syntax & Semantic Analyser.
In the final stage all the previous works are combined to generate assembly code for Intel 8086 processor. So, given a subset of C code as text,the compiler would assembly code for Intel 8086 processor. Also the assembly code is optimized to reduce etra variable.
I also handled function calls,recurrsive function calls. Unfortunately due to Ubuntu failure I've lost the code for the final assignment!