summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2024-10-27 09:16:27 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2024-10-27 09:16:27 +0000
commit6d0b638d691270d7c65899ed860d0330938e7a07 (patch)
tree2ffed0fb53ca82f760376847d95075a6285acf31 /comp/lucas-standen-NEA/code2
parentb8c4af0771371e0c91a57343892e991254c4bf0b (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/Makefile2
-rwxr-xr-xcomp/lucas-standen-NEA/code2/examples/fib_examplebin25496 -> 24664 bytes
-rw-r--r--comp/lucas-standen-NEA/code2/examples/fib_example.zpy1
-rwxr-xr-xcomp/lucas-standen-NEA/code2/examples/spaceinvadersbin1086520 -> 1078832 bytes
-rwxr-xr-xcomp/lucas-standen-NEA/code2/examples/str_examplebin25952 -> 19704 bytes
-rw-r--r--comp/lucas-standen-NEA/code2/stdlib/Makefile2
-rw-r--r--comp/lucas-standen-NEA/code2/stdlib/String/Makefile2
-rwxr-xr-xcomp/lucas-standen-NEA/code2/zpybin42592 -> 26616 bytes
-rw-r--r--comp/lucas-standen-NEA/code2/zpy.c2
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
index bdd94ec..517a257 100755
--- a/comp/lucas-standen-NEA/code2/examples/fib_example
+++ b/comp/lucas-standen-NEA/code2/examples/fib_example
Binary files differ
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
index ec88002..6208f66 100755
--- a/comp/lucas-standen-NEA/code2/examples/spaceinvaders
+++ b/comp/lucas-standen-NEA/code2/examples/spaceinvaders
Binary files differ
diff --git a/comp/lucas-standen-NEA/code2/examples/str_example b/comp/lucas-standen-NEA/code2/examples/str_example
index c543ab7..2cce391 100755
--- a/comp/lucas-standen-NEA/code2/examples/str_example
+++ b/comp/lucas-standen-NEA/code2/examples/str_example
Binary files differ
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
index 0c23ae3..18b20e8 100755
--- a/comp/lucas-standen-NEA/code2/zpy
+++ b/comp/lucas-standen-NEA/code2/zpy
Binary files differ
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]);
}