summaryrefslogtreecommitdiff
path: root/tnslc/compile
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-05 23:51:09 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-05 23:51:09 -0400
commit37d1e9fa02b27d1a6c56b4c95d31e6d2b9eab9ee (patch)
treefdc41f331f35b1b0179a5e589a7c70855a61c586 /tnslc/compile
parent57ad7f1f8261374349af75cc2f48261f790abdd4 (diff)
[TNSLC] Fix issue with text literals
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
+}