Initial implementation of register machine emulator.

This commit is contained in:
2019-11-17 19:52:52 +00:00
commit be80b6383c
6 changed files with 180 additions and 0 deletions

12
Tupfile Normal file
View File

@@ -0,0 +1,12 @@
CXX = g++
CXXFLAGS = -pedantic -std=c++17 -Wall -Wno-unused-parameter -Wno-reorder -Wno-sign-compare -Wno-address -Wno-noexcept-type -Wno-unknown-attributes -Wno-unknown-warning-option
CPPFLAGS =
LDFLAGS =
LIBS = -lgmpxx -lgmp
SRC_DIR = src
BUILD_DIR = build
PROG = Emulator
: foreach $(SRC_DIR)/*.cpp |> $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c %f -o %o |> $(BUILD_DIR)/%B.o
: $(BUILD_DIR)/*.o |> $(CXX) %f $(LDFLAGS) $(LIBS) -o %o |> $(PROG)