Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ptaffet/preprocessor-debug
Observe how the C preprocessor expands your complicated macros
https://github.com/ptaffet/preprocessor-debug
Last synced: 21 days ago
JSON representation
Observe how the C preprocessor expands your complicated macros
- Host: GitHub
- URL: https://github.com/ptaffet/preprocessor-debug
- Owner: ptaffet
- License: bsd-3-clause
- Created: 2017-07-03T18:44:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-11T18:24:59.000Z (over 7 years ago)
- Last Synced: 2024-02-17T10:36:23.280Z (10 months ago)
- Language: C++
- Size: 40.3 MB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-c-preprocessor - `ptaffet/preprocessor-debug` - - Observe how the C preprocessor expands your complicated macros. (Debuggers)
README
# preprocessor-debug
Observe how the C preprocessor expands your complicated macros## Dependencies:
* clang 4.0
* CMake 3.3+## Build instructions:
* `mkdir build && cd build`
* `cmake ..`
* `make`## Use instructions:
`./pp-step ../example.cpp`# asm.js version:
## Dependencies
* clang 4.0
* [yarn](https://yarnpkg.com/en/docs/install)
* Emscripten## Build instructions:
* Build clang in bitcode. This is hard, but can be done with the help of [`emmake`](https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#building-projects). When you are done, update `CLANG_LIB_PATH` in `web/Makefile`.
* `cd web`
* `make`
* `yarn`Since building clang in bitcode is hard, a pre-compiled version of the tool is in `web/compiled.tgz`