Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

0x0cqq/cpp2llvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp2llvm

Usage

  1. Install ANTLR4: ANTLR4 Installation1
  2. Install ANTLR4 runtime library for python: pip install -r requirements.txt
  3. Build: make parser2
  4. Run program: python3 main.py [source file] [output file]

Below steps are recommended to be performed in Ubuntu/WSL3: 5. Install LLVM 6. Run the llvm ir code lli [target file]3

More detail can be viewed in Doc.

Footnotes

  1. For Ubuntu you can sudo apt install antlr4, and that will give you a ANTLR 4.7.2

  2. Maybe you need to install make in windows, and change this command to mingw32-make parser.

  3. It's hard to find any lli or llc that can run our LLVM IR on Windows... 2

About

a c to llvm compiler, using antlr4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages