OSDN Git Service

What would a little C Joy look like?
authorSimon Forman <sforman@hushmail.com>
Fri, 23 Sep 2022 00:26:28 +0000 (17:26 -0700)
committerSimon Forman <sforman@hushmail.com>
Fri, 23 Sep 2022 00:26:28 +0000 (17:26 -0700)
Let's use GMP for ints and Boehm GC.

implementations/C/Makefile [new file with mode: 0644]
implementations/C/joy [new file with mode: 0755]
implementations/C/joy.c [new file with mode: 0644]

diff --git a/implementations/C/Makefile b/implementations/C/Makefile
new file mode 100644 (file)
index 0000000..899fe35
--- /dev/null
@@ -0,0 +1,5 @@
+COPTS=-I/usr/local/include
+
+joy: joy.c
+       cc $(COPTS) joy.c -o joy
+
diff --git a/implementations/C/joy b/implementations/C/joy
new file mode 100755 (executable)
index 0000000..af5e20f
Binary files /dev/null and b/implementations/C/joy differ
diff --git a/implementations/C/joy.c b/implementations/C/joy.c
new file mode 100644 (file)
index 0000000..3ba565f
--- /dev/null
@@ -0,0 +1,8 @@
+#include <gc.h>
+#include <gmp.h>
+
+int main(void)
+{
+    return 0;
+}
+