misc/kforth: Add system status, work on vocab, better write_num.
- Now system structure includes a status variable and an associated function for writing the status out. - Adding more words to the builtin dictionary. - write_num round 3. - Include option to not print the stack each iteration.
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,7 +1,9 @@
|
||||
CXXSTD := c++14
|
||||
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -g -O0
|
||||
CXXFLAGS := -std=$(CXXSTD) -Wall -Werror -Os -static
|
||||
LDFLAGS := -static
|
||||
OBJS := linux/io.o \
|
||||
io.o \
|
||||
system.o \
|
||||
parser.o \
|
||||
word.o \
|
||||
dict.o \
|
||||
@@ -11,7 +13,8 @@ TARGET := kforth
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CFLAGS) -o $@ $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
|
||||
strip $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(TARGET)
|
||||
|
||||
Reference in New Issue
Block a user