From 8a8ddcee3ad1866eb2921c639e15b38a2136a3cf Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 9 Nov 2021 15:40:35 +0200 Subject: [PATCH] Added notes on ceogeneration --- source/tlang/compiler/codegen/codegen_note.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/tlang/compiler/codegen/codegen_note.md diff --git a/source/tlang/compiler/codegen/codegen_note.md b/source/tlang/compiler/codegen/codegen_note.md new file mode 100644 index 0000000..dd735a3 --- /dev/null +++ b/source/tlang/compiler/codegen/codegen_note.md @@ -0,0 +1,18 @@ +Codegen TODO +============ + + +When we linearise, before we process it. We have dependencies that don't +generate code in a linear way. An example of this would be function declarations. +These tehmselves don't do anything. + +When we process such types we should obviousl dependency check them (which would be done +way before linearisaiton in any case) but we should not add them to the code quueue. + +Or, wait, no, maybe we should, but they should be ordered as such that at the end we +group their instructions which are properly re-ordered in the codegen/typeChecker +under the emit for each function. This way we can add segments to the memory region for emitted code-per-function. + + + +Just some notes and ideas. \ No newline at end of file