Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
/ cd-project Public archive

A simple C compiler. Made as part of the course Compiler Design, S6 CSE under KTU.

License

Notifications You must be signed in to change notification settings

aerocyber/cd-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cd-project

About

This is a simple C compiler implemented using the following tools:

  • clang
  • llvm
  • flex
  • yacc

Get the code

The code is publicly available on Github here.

Get the code by:

git clone https://github.com/aerocyber/cd-project

Running condition

This project is VERY minimal to the point that no programs other than in the test/ directory is guaranteed to compile. This compiler is VERY minimal and supposed to be treated as a proof of concept. The output is the IR code generated by LLVM.

Build Requirements

The following dependencies are required for building the project

  • clang
  • LLVM 19
  • flex
  • yacc

Build Instructions

If building for the first time,

./build.sh
  • Run the test file:
./test.sh
  • Cleanup:
./clean.sh

License

See LICENSE file

About

A simple C compiler. Made as part of the course Compiler Design, S6 CSE under KTU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published