diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-27 09:16:27 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2024-10-27 09:16:27 +0000 |
commit | 6d0b638d691270d7c65899ed860d0330938e7a07 (patch) | |
tree | 2ffed0fb53ca82f760376847d95075a6285acf31 /comp/lucas-standen-NEA/code2 | |
parent | b8c4af0771371e0c91a57343892e991254c4bf0b (diff) |
did some writeup changes and finished electronics stuff
Diffstat (limited to 'comp/lucas-standen-NEA/code2')
-rw-r--r-- | comp/lucas-standen-NEA/code2/Makefile | 2 | ||||
-rwxr-xr-x | comp/lucas-standen-NEA/code2/examples/fib_example | bin | 25496 -> 24664 bytes | |||
-rw-r--r-- | comp/lucas-standen-NEA/code2/examples/fib_example.zpy | 1 | ||||
-rwxr-xr-x | comp/lucas-standen-NEA/code2/examples/spaceinvaders | bin | 1086520 -> 1078832 bytes | |||
-rwxr-xr-x | comp/lucas-standen-NEA/code2/examples/str_example | bin | 25952 -> 19704 bytes | |||
-rw-r--r-- | comp/lucas-standen-NEA/code2/stdlib/Makefile | 2 | ||||
-rw-r--r-- | comp/lucas-standen-NEA/code2/stdlib/String/Makefile | 2 | ||||
-rwxr-xr-x | comp/lucas-standen-NEA/code2/zpy | bin | 42592 -> 26616 bytes | |||
-rw-r--r-- | comp/lucas-standen-NEA/code2/zpy.c | 2 |
9 files changed, 5 insertions, 4 deletions
diff --git a/comp/lucas-standen-NEA/code2/Makefile b/comp/lucas-standen-NEA/code2/Makefile index 4dc4224..cfd4254 100644 --- a/comp/lucas-standen-NEA/code2/Makefile +++ b/comp/lucas-standen-NEA/code2/Makefile @@ -1,5 +1,5 @@ CC = cc -CFLAGS = -O0 -ggdb +CFLAGS =-O3 zpy: zpy.c comp.c parser.c tokenizer.c util.c ${CC} *.c -c ${CFLAGS} diff --git a/comp/lucas-standen-NEA/code2/examples/fib_example b/comp/lucas-standen-NEA/code2/examples/fib_example Binary files differindex bdd94ec..517a257 100755 --- a/comp/lucas-standen-NEA/code2/examples/fib_example +++ b/comp/lucas-standen-NEA/code2/examples/fib_example diff --git a/comp/lucas-standen-NEA/code2/examples/fib_example.zpy b/comp/lucas-standen-NEA/code2/examples/fib_example.zpy index a79b7d7..adb2a71 100644 --- a/comp/lucas-standen-NEA/code2/examples/fib_example.zpy +++ b/comp/lucas-standen-NEA/code2/examples/fib_example.zpy @@ -7,6 +7,7 @@ (endfun) (defun main int) + (printstr "give me a number (bellow 30 if you want it to be quick): ") (let n:int (readint)) (printint (fib n)) (printchar '\n') diff --git a/comp/lucas-standen-NEA/code2/examples/spaceinvaders b/comp/lucas-standen-NEA/code2/examples/spaceinvaders Binary files differindex ec88002..6208f66 100755 --- a/comp/lucas-standen-NEA/code2/examples/spaceinvaders +++ b/comp/lucas-standen-NEA/code2/examples/spaceinvaders diff --git a/comp/lucas-standen-NEA/code2/examples/str_example b/comp/lucas-standen-NEA/code2/examples/str_example Binary files differindex c543ab7..2cce391 100755 --- a/comp/lucas-standen-NEA/code2/examples/str_example +++ b/comp/lucas-standen-NEA/code2/examples/str_example diff --git a/comp/lucas-standen-NEA/code2/stdlib/Makefile b/comp/lucas-standen-NEA/code2/stdlib/Makefile index ff46d14..9d4bfd6 100644 --- a/comp/lucas-standen-NEA/code2/stdlib/Makefile +++ b/comp/lucas-standen-NEA/code2/stdlib/Makefile @@ -1,5 +1,5 @@ CC=cc -CFLAGS=-O0 -ggdb +CFLAGS=-O3 stdlib: cd String && make diff --git a/comp/lucas-standen-NEA/code2/stdlib/String/Makefile b/comp/lucas-standen-NEA/code2/stdlib/String/Makefile index e61ca1d..053ab59 100644 --- a/comp/lucas-standen-NEA/code2/stdlib/String/Makefile +++ b/comp/lucas-standen-NEA/code2/stdlib/String/Makefile @@ -1,5 +1,5 @@ CC=cc -CFLAGS=-ggdb +CFLAGS=-O3 all: String.c ${CC} String.c -c -o String.o ${CFLAGS} diff --git a/comp/lucas-standen-NEA/code2/zpy b/comp/lucas-standen-NEA/code2/zpy Binary files differindex 0c23ae3..18b20e8 100755 --- a/comp/lucas-standen-NEA/code2/zpy +++ b/comp/lucas-standen-NEA/code2/zpy diff --git a/comp/lucas-standen-NEA/code2/zpy.c b/comp/lucas-standen-NEA/code2/zpy.c index 40a497e..c370ca2 100644 --- a/comp/lucas-standen-NEA/code2/zpy.c +++ b/comp/lucas-standen-NEA/code2/zpy.c @@ -88,7 +88,7 @@ int main(int argc, char **argv){ if (omitc == false){ char *cmd = malloc(512); - snprintf(cmd, 512, "cc ./tmp.zpy.c /usr/local/share/zpylib/*.o -o %s -I/usr/local/share/zpylib/include -Wno-implicit-function-declaration ", outfilename); + snprintf(cmd, 512, "cc -O3 ./tmp.zpy.c /usr/local/share/zpylib/*.o -o %s -I/usr/local/share/zpylib/include -Wno-implicit-function-declaration ", outfilename); for (int i = 0; i < compilerflagscount; i++){ cmd = appendsnprintf(cmd, 512, "%s ", compilerflags[i]); } |