summaryrefslogtreecommitdiff
path: root/tnslc/compile
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/compile')
-rw-r--r--tnslc/compile/arch/isa_x86.tnsl14
-rw-r--r--tnslc/compile/compile.tnsl10
2 files changed, 23 insertions, 1 deletions
diff --git a/tnslc/compile/arch/isa_x86.tnsl b/tnslc/compile/arch/isa_x86.tnsl
index 0dc3468..03646ce 100644
--- a/tnslc/compile/arch/isa_x86.tnsl
+++ b/tnslc/compile/arch/isa_x86.tnsl
@@ -13,3 +13,17 @@
WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE
EXPRESS OR IMPLIED
#/
+
+
+
+/; gen_symtab (Node program) [Symtab]
+
+;/
+
+/; symtab_to_section (Symtab sym) [{}charp]
+
+;/
+
+/; block_to_asm ({}charp block_name, Node block) [{}charp]
+
+;/
diff --git a/tnslc/compile/compile.tnsl b/tnslc/compile/compile.tnsl
index 2787eba..df94752 100644
--- a/tnslc/compile/compile.tnsl
+++ b/tnslc/compile/compile.tnsl
@@ -16,7 +16,7 @@
/; module compile
# :include "compile/arch/arch.tnsl"
- :include "compile/format/format.tnsl"
+ :include "compile/arch/isa_x86.tnsl"
# :include "compile/comp.tnsl"
;/
@@ -24,3 +24,11 @@
/; do_compile ({}charp file, ast.Node data, Settings settings)
;/
+
+;struct Symtab {
+ {}{}charp
+ sym_names,
+
+ {}uint
+ sym_sizes
+}