summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-01-31 22:06:02 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-01-31 22:06:02 +0100
commitf2f1bb631f161299e2172612dcd40e1777ad5f5c (patch)
tree3aaab8caf56395a6ec62375acaa254d81587d12a
parentprve ne pozabiš nikoli (diff)
downloadebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar.gz
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar.bz2
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar.lz
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar.xz
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.tar.zst
ebs-f2f1bb631f161299e2172612dcd40e1777ad5f5c.zip
-rw-r--r--ebs.c2
-rw-r--r--makefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/ebs.c b/ebs.c
index 975136d..f2d1c93 100644
--- a/ebs.c
+++ b/ebs.c
@@ -114,9 +114,11 @@ static void izhod_poln (struct ebs * e) {
void ebs_init (struct ebs * e) {
memset(e, '\0', sizeof *e);
+#ifndef NO_HOOKS
e->peek = peek;
e->poke = poke;
e->inštrukcija = inštrukcija;
+#endif
e->vhod_medp_indeks = 8;
e->izhod_medp_indeks = 0;
e->vhod_prazen = vhod_prazen;
diff --git a/makefile b/makefile
index 5b5889b..b183ada 100644
--- a/makefile
+++ b/makefile
@@ -1,6 +1,6 @@
DESTDIR=/
CC=cc
-MYCFLAGS=-Ofast -march=native -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address
+MYCFLAGS=-O3 -DNO_HOOKS -march=native -Wall -Wextra -Wformat -pedantic -g -I. # -fsanitize=address
MYLDFLAGS=-lpthread
default: ebs disass
@@ -8,7 +8,7 @@ default: ebs disass
ebs: main.c ebs.c
$(CC) $(MYCFLAGS) $(CFLAGS) main.c -o$@ $(MYLDFLAGS) $(LDFLAGS)
-disass: disass
+disass: disass.c
$(CC) $(MYCFLAGS) $(CFLAGS) disass.c -o$@ $(MYLDFLAGS) $(LDFLAGS)
install: