drifter1 / compiler

Implementing a complete Compiler for a simple C-like language using the C-tools Flex and Bison

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compiler

Compiler Design Steps

A short Description of this repository:
It contains all the Code from my "Writing a simple Compiler on my own" series on Steemit (step by step / article by article), where I am implementing a complete Compiler for a simple C-like Language using the C-tools Flex and Bison and self-written Custom Structures and Code.

Articles

It's worth noting that not all articles contain actual Code. Compiler design in general is mostly about understanding how everything needs to work. After understanding the basic principle, the implementation is much easier, which is why some articles are more or less 90% theory!

Until now we covered the following...

General Knowledge and Lexical Analysis

Syntax Analysis

Semantic Analysis (1)

Intermediate Code Generation (AST)

Semantic Analysis (2)

Machine Code Generation

Next Up

What remains now is:

  • Machine Code generation in MIPS Assembly (remaining cases)
  • Various Optimizations in the Compiler's Code

After doing all that we could also get into Optimizations, Extensions and even more if you like :)

About

Implementing a complete Compiler for a simple C-like language using the C-tools Flex and Bison

License:GNU General Public License v3.0


Languages

Language:C 76.6%Language:Yacc 18.1%Language:Lex 4.8%Language:Assembly 0.4%Language:Makefile 0.1%