https://github.com/ayaanqui/cs474-project4
CS474 Project 4 - Programmable Calculator (PC)
https://github.com/ayaanqui/cs474-project4
cpp
Last synced: 10 months ago
JSON representation
CS474 Project 4 - Programmable Calculator (PC)
- Host: GitHub
- URL: https://github.com/ayaanqui/cs474-project4
- Owner: ayaanqui
- Created: 2021-11-25T05:08:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-04T03:50:00.000Z (over 4 years ago)
- Last Synced: 2025-06-11T09:56:24.328Z (about 1 year ago)
- Topics: cpp
- Language: C++
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Instructions
This program uses the g++ compiler to run the program. On Linux or Mac you can run the `make build` command to build binary file which should be name `program` or `program.out` on Windows. You can either run the binary by running `./program` or by running `make run`.
### Linux/Mac
```
$ make build; make run
```
### Windows
```
> g++ -O2 -std=c++11 -Wall main.cpp expression/Expression.cpp variable_snapshot/VariableSnapshot.cpp Program.cpp Instruction.cpp -o program
> ./program.out
```
### Testing memory leaks with Valgrind
`make valgrind` takes the existing binary and analyses memeory allocations and possible leaks.
```
$ make build; make valgrind
```