https://github.com/kdawgwilk/simplecompiler
Compiler for stripped down version of C written in C++
https://github.com/kdawgwilk/simplecompiler
cmake compiler cplusplus gmock gtest
Last synced: about 2 months ago
JSON representation
Compiler for stripped down version of C written in C++
- Host: GitHub
- URL: https://github.com/kdawgwilk/simplecompiler
- Owner: kdawgwilk
- Created: 2017-04-19T20:43:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-01T20:24:35.000Z (about 8 years ago)
- Last Synced: 2025-02-09T04:26:33.649Z (4 months ago)
- Topics: cmake, compiler, cplusplus, gmock, gtest
- Language: CMake
- Size: 85 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleCompiler
This project uses `cmake` and requires version `3.7`
## macOS
### Install cmake
```
$ brew install cmake
```### Create Xcode project with cmake
```
$ mkdir Xcode
$ cd Xcode
$ cmake .. -GXcode
```### Build & Run
Open the Xcode project and run the `SimpleCompiler` Scheme
## Linux
### Install cmake
```
$ apt-get purge cmake
$ wget https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz
$ tar xzf cmake-3.8.0-Linux-x86_64.tar.gz
$ cd cmake-3.8.0-Linux-x86_64
$ sudo cp -r bin /usr/local/
$ sudo cp -r doc /usr/local/share/
$ sudo cp -r man /usr/local/share/
$ sudo cp -r share /usr/local/
$ cd ..
$ rm -Rf cmake-3.8.0-Linux-x86_64
$ rm cmake-3.8.0-Linux-x86_64.tar.gz
$ cmake --version
```### Create Makefile with cmake
```
$ mkdir Make
$ cd Make
$ cmake ..
```### Build & Run
```
$ make
$ SimpleCompiler
$ SimpleCompiler test
```## Windows
TODO: Need to figure out how install goes on Windows
### Install cmake
Windows installer can be found at https://cmake.org/download/
### Create Visual Studio Project project with cmake
```
?
```### Build & Run
Open Visual Studio Project and run