https://github.com/avakar/cpp2sir
Translates C++ programs to Stanse intermediate representation.
https://github.com/avakar/cpp2sir
Last synced: about 2 months ago
JSON representation
Translates C++ programs to Stanse intermediate representation.
- Host: GitHub
- URL: https://github.com/avakar/cpp2sir
- Owner: avakar
- License: mit
- Created: 2010-12-30T20:25:40.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-08-18T18:31:50.000Z (almost 14 years ago)
- Last Synced: 2025-04-12T19:57:48.984Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 305 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
## Installation
First, install LLVM and clang (LLVM's C/C++/ObjC frontend).
The clang libraries are used to generate C++ AST and to
perform template instantiation.
I recommend always using the trunk version of both LLVM and clang
(they are kept in sync and I'll try to keep cpp2sir in sync as well).
I will also keep this file updated with the revisions of LLVM and clang
that are known to work.$ svn co http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_29/final llvm
$ svn co http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_29/final llvm/tools/clangUse `cmake` to generate whatever makefiles you use on your platform.
I recommend performing the build in a nested directory so as to keep the source
directories clean.$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=After you run `cmake`, use the generated makefiles to build and install the libraries.
Once the installation is complete, you can configure and build cpp2sir.$ cmake .. -DLLVM_INCLUDE_DIR= -DLLVM_LIB_DIR=
If you can't get the sources to compile, please, [let me know][1].
[1]: https://github.com/avakar/cpp2sir/issues