aboutsummaryrefslogtreecommitdiff
path: root/src/compile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-24 20:33:56 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-24 20:33:56 +0300
commitfe3d9c7dfbe4190ecf0919abe474e4da4c019566 (patch)
tree91dd12b6a9980e5945e7dbde761afadd9d118d09 /src/compile
parent5a4da8bac457f0e70e690a572eba9cf754e69a37 (diff)
downloadejit-fe3d9c7dfbe4190ecf0919abe474e4da4c019566.tar.gz
ejit-fe3d9c7dfbe4190ecf0919abe474e4da4c019566.zip
add initial compiler framework
Diffstat (limited to 'src/compile')
-rw-r--r--src/compile/compile.c8
-rw-r--r--src/compile/nocompile.c7
2 files changed, 15 insertions, 0 deletions
diff --git a/src/compile/compile.c b/src/compile/compile.c
new file mode 100644
index 0000000..513e0e1
--- /dev/null
+++ b/src/compile/compile.c
@@ -0,0 +1,8 @@
+#include <ejit/ejit.h>
+#include "../../deps/lightening/lightening/lightening.c"
+#include "../common.h"
+
+bool ejit_compile(struct ejit_func *f)
+{
+ return false;
+}
diff --git a/src/compile/nocompile.c b/src/compile/nocompile.c
new file mode 100644
index 0000000..065d466
--- /dev/null
+++ b/src/compile/nocompile.c
@@ -0,0 +1,7 @@
+#include <ejit/ejit.h>
+
+bool ejit_compile(struct ejit_func *f)
+{
+ (void)(f);
+ return false;
+}