From d4fe9e6e27f2013a6e1f6be94daba91ec53fa5c3 Mon Sep 17 00:00:00 2001 From: CircleShift Date: Wed, 5 Mar 2025 07:26:58 -0500 Subject: [tnslc] Rework compile layout --- tnslc/compile/outbuf.tnsl | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 tnslc/compile/outbuf.tnsl (limited to 'tnslc/compile/outbuf.tnsl') diff --git a/tnslc/compile/outbuf.tnsl b/tnslc/compile/outbuf.tnsl deleted file mode 100644 index 7394feb..0000000 --- a/tnslc/compile/outbuf.tnsl +++ /dev/null @@ -1,31 +0,0 @@ -struct OutBuf { - utils.Vector - hsec, - dsec, - csec -} - -/; method OutBuf - /; init - self.hsec.init(1) - self.dsec.init(1) - self.csec.init(1) - ;/ - - /; write_to_file (~utils.File fout) - fout`.open() - fout`.write_cstr("bits 64\n\0") - fout`.write_cstr(self.hsec.as_cstr()) - fout`.write_cstr("\nsection .data\n\0") - fout`.write_cstr(self.dsec.as_cstr()) - fout`.write_cstr("\nsection .text\n\0") - fout`.write_cstr(self.csec.as_cstr()) - fout`.close() - ;/ - - /; end - self.hsec.end() - self.dsec.end() - self.csec.end() - ;/ -;/ -- cgit v1.2.3