Add putchard and move to OrcJIT
[kaleidoscope-hs-old.git] / stdlib.c
diff --git a/stdlib.c b/stdlib.c
new file mode 100644 (file)
index 0000000..5948f76
--- /dev/null
+++ b/stdlib.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+extern double putchard(double x) {
+       putchar((int)x);
+       return 0;
+}