summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Harley2020-01-11 20:12:20 +0000
committerTom Harley2020-01-11 20:12:20 +0000
commitc52a6bedb06d83adca8e5a89ec23d77967ae4cce (patch)
treed715d04b03084074d29cf00b5dca07eb21d39491
parentTidying up (diff)
downloadsinter-c52a6bedb06d83adca8e5a89ec23d77967ae4cce.tar.gz
sinter-c52a6bedb06d83adca8e5a89ec23d77967ae4cce.zip

Rename compiler to sinc

-rw-r--r--Makefile18
-rw-r--r--common.mak6
-rw-r--r--examples/nq/Makefile2
-rw-r--r--graphviz_codegen.c2
-rw-r--r--graphviz_codegen.h2
-rw-r--r--lex.l2
-rw-r--r--llvm_codegen.c2
-rw-r--r--llvm_codegen.h2
-rw-r--r--parse.y2
-rw-r--r--sinc.c (renamed from sinter.c)2
-rw-r--r--sinc.h (renamed from sinter.h)0
-rw-r--r--sinter_codegen.c2
-rw-r--r--sinter_codegen.h2
13 files changed, 22 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index e25ffd0..86068b0 100644
--- a/Makefile
+++ b/Makefile
@@ -22,26 +22,26 @@ LDLIBS += $(shell llvm-config --libs $(LLVM_MODULES) --system-libs)
default: all
-all: sinter
+all: sinc
install: all
$(INSTALL) -d $(PREFIX)/bin/
- $(INSTALL) sinter $(PREFIX)/bin/
+ $(INSTALL) sinc $(PREFIX)/bin/
uninstall:
- $(RM) $(PREFIX)/bin/sinter
+ $(RM) $(PREFIX)/bin/sinc
-sinter.o: sinter.h parse.h debug.h error.h scope.h llvm_codegen.h \
+sinc.o: sinc.h parse.h debug.h error.h scope.h llvm_codegen.h \
graphviz_codegen.h
-llvm_codegen.o: llvm_codegen.h sinter.h scope.h debug.h parse.h error.h
+llvm_codegen.o: llvm_codegen.h sinc.h scope.h debug.h parse.h error.h
sinter_codegen.o: sinter_codegen.h parse.h
graphviz_codegen.o: graphviz_codegen.h parse.h error.h
-parse.o: sinter.h
-lex.o: sinter.h parse.h
+parse.o: sinc.h
+lex.o: sinc.h parse.h
scope.o: scope.h error.h debug.h
common.o: debug.h
-sinter: sinter.o parse.o lex.o scope.o llvm_codegen.o sinter_codegen.o \
+sinc: sinc.o parse.o lex.o scope.o llvm_codegen.o sinter_codegen.o \
graphviz_codegen.o
$(LINK.cc) $(OUTPUT_OPTION) $^ $(LDLIBS)
@@ -61,4 +61,4 @@ lex.o: lex.c
$(YACC) -o $@ $<
clean:
- $(RM) sinter *.tab.* *.o lex.c parse.c parse.h
+ $(RM) sinc *.tab.* *.o lex.c parse.c parse.h
diff --git a/common.mak b/common.mak
index 5b49f55..e9b8059 100644
--- a/common.mak
+++ b/common.mak
@@ -1,8 +1,8 @@
-LLC ?= clang
-SINC ?= sinter
+LLC ?= llc
+SINC ?= sinc
%.o: %.ll
- $(LLC) -c $(LLCFLAGS) -o $@ $<
+ $(LLC) -filetype obj $(LLCFLAGS) -o $@ $<
%.ll: %.sin
$(SINC) -l $(SINCFLAGS) -o $@ $<
diff --git a/examples/nq/Makefile b/examples/nq/Makefile
index 719acc2..3939123 100644
--- a/examples/nq/Makefile
+++ b/examples/nq/Makefile
@@ -7,7 +7,7 @@ CFLAGS = $(DEBUG) -Werror -Wpedantic -Wall -I$(HOME)/usr/include
LDFLAGS = $(DEBUG) -L$(HOME)/usr/lib
LDLIBS = -lgc
-LLCFLAGS = $(DEBUG) -Werror -Wpedantic -Wall
+LLCFLAGS = -O0
SINCFLAGS = -u never -w 32
TRGT = nqueens
diff --git a/graphviz_codegen.c b/graphviz_codegen.c
index 4e94483..bbb29a1 100644
--- a/graphviz_codegen.c
+++ b/graphviz_codegen.c
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include "graphviz_codegen.h"
-#include "sinter.h"
+#include "sinc.h"
#include "parse.h"
#include "error.h"
diff --git a/graphviz_codegen.h b/graphviz_codegen.h
index 6fae8d5..72a9698 100644
--- a/graphviz_codegen.h
+++ b/graphviz_codegen.h
@@ -1,7 +1,7 @@
#ifndef GRAPHVIZ_CODEGEN_H
#define GRAPHVIZ_CODEGEN_H
-#include "sinter.h"
+#include "sinc.h"
void graphviz_codegen_prologue();
void graphviz_codegen(sexpr *ast);
diff --git a/lex.l b/lex.l
index 5319430..5546bad 100644
--- a/lex.l
+++ b/lex.l
@@ -8,7 +8,7 @@
#include <string.h>
#include "sexpr.h"
-#include "sinter.h"
+#include "sinc.h"
#include "parse.h"
void yyerror(const char *s, ...);
diff --git a/llvm_codegen.c b/llvm_codegen.c
index 1e6ce93..2789345 100644
--- a/llvm_codegen.c
+++ b/llvm_codegen.c
@@ -12,7 +12,7 @@
#include <llvm-c/DebugInfo.h>
#include "llvm_codegen.h"
-#include "sinter.h"
+#include "sinc.h"
#include "scope.h"
#include "debug.h"
#include "parse.h"
diff --git a/llvm_codegen.h b/llvm_codegen.h
index 70d116d..5e30b18 100644
--- a/llvm_codegen.h
+++ b/llvm_codegen.h
@@ -1,7 +1,7 @@
#ifndef LLVM_CODEGEN_H
#define LLVM_CODEGEN_H
-#include "sinter.h"
+#include "sinc.h"
typedef enum {
ALWAYS_BOX,
diff --git a/parse.y b/parse.y
index 20233fa..97c113c 100644
--- a/parse.y
+++ b/parse.y
@@ -7,7 +7,7 @@
#include <stdlib.h>
#include "sexpr.h"
-#include "sinter.h"
+#include "sinc.h"
extern int yylineno;
int yylex(void);
diff --git a/sinter.c b/sinc.c
index 1792bf1..cc0117c 100644
--- a/sinter.c
+++ b/sinc.c
@@ -4,7 +4,7 @@
#include <string.h>
#include <unistd.h>
-#include "sinter.h"
+#include "sinc.h"
#include "sexpr.h"
#include "llvm_codegen.h"
#include "sinter_codegen.h"
diff --git a/sinter.h b/sinc.h
index 0288887..0288887 100644
--- a/sinter.h
+++ b/sinc.h
diff --git a/sinter_codegen.c b/sinter_codegen.c
index 56930df..b4a15a3 100644
--- a/sinter_codegen.c
+++ b/sinter_codegen.c
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include "sinter_codegen.h"
-#include "sinter.h"
+#include "sinc.h"
#include "parse.h"
#include "error.h"
diff --git a/sinter_codegen.h b/sinter_codegen.h
index e0a0737..98d579f 100644
--- a/sinter_codegen.h
+++ b/sinter_codegen.h
@@ -1,7 +1,7 @@
#ifndef SINTER_CODEGEN_H
#define SINTER_CODEGEN_H
-#include "sinter.h"
+#include "sinc.h"
void sinter_codegen_prologue();
void sinter_codegen(sexpr *ast);