SkillAgentSearch skills...

Meo

subset c compiler

Install / Use

/learn @truongpt/Meo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Meo subset c compiler

Let's start

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.

Todo list

  • [x] Support function.
  • [x] Function call.
  • [x] Global variable & local variable.
  • [ ] Structure type.
  • [ ] Pointer.
  • [ ] Function pointer.
  • [ ] All operator.
  • [ ] v..v...
  • [ ] Self compile.
View on GitHub
GitHub Stars37
CategoryDevelopment
Updated6mo ago
Forks2

Languages

C++

Security Score

82/100

Audited on Sep 10, 2025

No findings