https://github.com/satyendrabanjare/c-llvm-compiler
An Hobby project learning to use LLVM.
https://github.com/satyendrabanjare/c-llvm-compiler
Last synced: 4 months ago
JSON representation
An Hobby project learning to use LLVM.
- Host: GitHub
- URL: https://github.com/satyendrabanjare/c-llvm-compiler
- Owner: SatyendraBanjare
- Created: 2018-07-21T16:32:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T12:09:48.000Z (almost 6 years ago)
- Last Synced: 2024-12-30T20:15:44.472Z (5 months ago)
- Language: C++
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C-LLVM-compiler
A hobby project for learning to use LLVM.

It is a simple multipass static C compiler capable of handling loops & contextual semantics that emits LLVM-IR. The only form of IO implemented is "print" function. JIT flavored compilation is supported.
Different Features such as loop, conditional statements, binary operations both bitwise and normal are implemented. Commenting in both the form i.e Single line and multiline, similar to C is also implemented.
## ToDo :
- Add switch-break feature.## References :
https://github.com/ShichenLiu/C-compiler
http://aquamentus.com/tut_lexyacc.html
http://dinosaur.compilertools.net/flex/flex_11.html
https://www.univ-orleans.fr/lifo/Members/Mirian.Halfeld/Cours/TLComp/l3-0708-LexA.pdf
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.genprogc/yaac_file_declarations.htm
https://gist.github.com/serge-sans-paille/aa332fa22692fcdfdc51
http://releases.llvm.org/2.6/docs/tutorial/JITTutorial2.html
https://llvm.org/docs/tutorial/LangImpl05.html