WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

csecutsc/c-compiler

Repository files navigation

c-compiler

c-like language with:

  • built-in function printf
  • implicit returns

Compilation Command

clang++ -g compiler.cpp `llvm-config --cxxflags --ldflags --system-libs --libs core orcjit native` -o compiler

Bugs

  • cant print multiple times, due to redeclaration of print ptr
  • existing linker is hacky and within the compiler

Quick compile and interpret

./compiler ./example.c &> temp.ll && lli temp.ll

About

c-like language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published