From 4e2e269fab3f5facedc6ec0131f132bd66c0aac4 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 14 Sep 2022 14:05:03 -0400 Subject: Focus on ASM generation instead of raw binary --- tnslc/compile/arch/arch.tnsl | 20 -------------------- tnslc/compile/arch/common.tnsl | 22 ---------------------- tnslc/compile/arch/isa_arm.tnsl | 15 --------------- tnslc/compile/arch/isa_risc_v.tnsl | 15 --------------- tnslc/compile/arch/isa_x86.tnsl | 29 ----------------------------- 5 files changed, 101 deletions(-) delete mode 100644 tnslc/compile/arch/arch.tnsl delete mode 100644 tnslc/compile/arch/common.tnsl delete mode 100644 tnslc/compile/arch/isa_arm.tnsl delete mode 100644 tnslc/compile/arch/isa_risc_v.tnsl delete mode 100644 tnslc/compile/arch/isa_x86.tnsl (limited to 'tnslc/compile/arch') diff --git a/tnslc/compile/arch/arch.tnsl b/tnslc/compile/arch/arch.tnsl deleted file mode 100644 index 5e81673..0000000 --- a/tnslc/compile/arch/arch.tnsl +++ /dev/null @@ -1,20 +0,0 @@ -/## - Copyright 2021 Kyle Gunger - - This file is licensed under the CDDL 1.0 (the License) - and may only be used in accordance with the License. - You should have received a copy of the License with this - software/source code. If you did not, a copy can be found - at the following URL: - - https://opensource.org/licenses/CDDL-1.0 - - THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO - WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE - EXPRESS OR IMPLIED -#/ - -/; module arch - :import "compile/arch/common.tnsl" - :import "compile/arch/isa_x86.tnsl" -;/ \ No newline at end of file diff --git a/tnslc/compile/arch/common.tnsl b/tnslc/compile/arch/common.tnsl deleted file mode 100644 index 1ff1c89..0000000 --- a/tnslc/compile/arch/common.tnsl +++ /dev/null @@ -1,22 +0,0 @@ -/## - Copyright 2021 Kyle Gunger - - This file is licensed under the CDDL 1.0 (the License) - and may only be used in accordance with the License. - You should have received a copy of the License with this - software/source code. If you did not, a copy can be found - at the following URL: - - https://opensource.org/licenses/CDDL-1.0 - - THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO - WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE - EXPRESS OR IMPLIED -#/ - -# Instructions are always stored in big-endian format internally. -# The settings for the isa/compiler dictate weather the instruction -# data will be reversed when the sections are being written. -; struct instruction { - {}uint8 data -} \ No newline at end of file diff --git a/tnslc/compile/arch/isa_arm.tnsl b/tnslc/compile/arch/isa_arm.tnsl deleted file mode 100644 index 0dc3468..0000000 --- a/tnslc/compile/arch/isa_arm.tnsl +++ /dev/null @@ -1,15 +0,0 @@ -/## - Copyright 2021 Kyle Gunger - - This file is licensed under the CDDL 1.0 (the License) - and may only be used in accordance with the License. - You should have received a copy of the License with this - software/source code. If you did not, a copy can be found - at the following URL: - - https://opensource.org/licenses/CDDL-1.0 - - THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO - WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE - EXPRESS OR IMPLIED -#/ diff --git a/tnslc/compile/arch/isa_risc_v.tnsl b/tnslc/compile/arch/isa_risc_v.tnsl deleted file mode 100644 index 0dc3468..0000000 --- a/tnslc/compile/arch/isa_risc_v.tnsl +++ /dev/null @@ -1,15 +0,0 @@ -/## - Copyright 2021 Kyle Gunger - - This file is licensed under the CDDL 1.0 (the License) - and may only be used in accordance with the License. - You should have received a copy of the License with this - software/source code. If you did not, a copy can be found - at the following URL: - - https://opensource.org/licenses/CDDL-1.0 - - THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO - WARRANTY, GUARANTEE, OR CLAIM OF FITNESS FOR ANY PURPOSE - EXPRESS OR IMPLIED -#/ diff --git a/tnslc/compile/arch/isa_x86.tnsl b/tnslc/compile/arch/isa_x86.tnsl deleted file mode 100644 index 03646ce..0000000 --- a/tnslc/compile/arch/isa_x86.tnsl +++ /dev/null @@ -1,29 +0,0 @@ -/## - Copyright 2021 Kyle Gunger - - This file is licensed under the CDDL 1.0 (the License) - and may only be used in accordance with the License. - You should have received a copy of the License with this - software/source code. If you did not, a copy can be found - at the following URL: - - https://opensource.org/licenses/CDDL-1.0 - - THIS SOFTWARE/SOURCE CODE IS PROVIDED "AS IS" WITH NO - 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] - -;/ -- cgit v1.2.3