Home
Projects
Resources
Alternatives
Blog
Sign In
Meo
Save
subset c compiler
Overview
Versions
Reviews
Resources
Project README
Meo subset c compiler
Let's start
meo
is :cat: in Vietnamese, but now it is subset c compliler
The project is mainly used to study compiler.
I use
100DaysOfCode
strategy, that will make
small step
everyday by
rule
I study base on following.
Reading
Compiler design in C - Allen I.Holub
Reading
Dragon book
Reference
A Compiler Writing Journey
Design
Using design as
four-pass compiler
, which is refered from
Compiler design in C - Allen I.Holub
Each module lexical analyzer, parser, code generation are designed as independent module, it can be easy to replace without any effect other part.
Each module is designed as multi instance, I plan supporting paralell compiler to increase performance.
Implementation
First step: only supporting X86-64 + pass 2 (lexical analyzer, parser, code generation).
Using back end of GCC to generate executed code.
Using TDD with
catch2
.
Using
Google coding convention
.
Current status.
Can compile all files in
sample
, ex
fibonacci.c
Can compiler recursion, as the fibonacci recursion version
recursion.c
Todo list
Support function.
Function call.
Global variable & local variable.
Structure type.
Pointer.
Function pointer.
All
operator
.
v..v...
Self compile.
Open Source Agenda is not affiliated with "Meo" Project. README Source:
truongpt/meo
Stars
38
Open Issues
0
Last Commit
3 years ago
Repository
truongpt/meo
License
GPL-3.0
Tags
100daysofcode
Compiler
Lexical Analysis
X86 64
Open Source Agenda Badge
Submit Review
Review Your Favorite Project
Submit Resource
Articles, Courses, Videos
Submit Article
Submit a post to our blog
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
From the blog
Dec 11, 2022
How to Choose Which Programming Language to Learn First?
Home
Projects
Resources
Alternatives
Blog
Sign In
Sign In to OSA
I agree with
Terms of Service
and
Privacy Policy
Sign In with Github