Skip to content

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

License

Notifications You must be signed in to change notification settings

drifter1/compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7fbcd3f · Oct 20, 2020
Nov 16, 2018
Nov 15, 2018
Nov 19, 2018
Nov 22, 2018
Dec 9, 2018
Dec 4, 2018
Nov 29, 2018
Dec 2, 2018
Nov 27, 2018
Sep 23, 2018
Sep 23, 2018
Dec 14, 2018
Oct 3, 2018
Oct 12, 2018
Nov 7, 2018
Nov 10, 2018
Jun 23, 2019
Jul 24, 2019
Jun 22, 2019
Jul 9, 2019
Jul 19, 2019
Jul 2, 2019
Sep 23, 2018
Sep 23, 2018
Jan 16, 2019
Dec 24, 2018
Nov 7, 2018
Nov 15, 2018
Jun 17, 2019
Sep 23, 2018
Dec 20, 2018
Nov 3, 2018
Jun 20, 2019
Sep 23, 2018
Oct 20, 2020

Repository files navigation

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 :)

Releases

No releases published

Packages

No packages published