aboutsummaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org36
1 files changed, 18 insertions, 18 deletions
diff --git a/todo.org b/todo.org
index ba3f0f0..fd9cac4 100644
--- a/todo.org
+++ b/todo.org
@@ -15,24 +15,6 @@
*** TODO VM [0%]
**** TODO vm/runtime.h
** TODO Specification
-* TODO Rigid endian :LIB:
-Say a program is compiled on a little endian machine. The resultant
-bytecode file, as a result of using C's internal functions, will use
-little endian.
-
-This file, when distributed to other computers, will not work on those
-that use big endian.
-
-This is a massive problem; I would like bytecode compiled on one
-computer to work on any other one. Therefore we have to enforce big
-endian. This refactor is limited to only LIB as a result of only the
-~convert_*~ functions being used in the runtime to convert between
-byte buffers (usually read from the bytecode file directly or from
-memory to use in the stack).
-
-2024-04-09: Found the ~hto_e~ functions under =endian.h= that provide
-both way host to specific endian conversion of shorts, half words and
-words. This will make it super simple to just convert.
* TODO Preprocessing directives :ASM:
Like in FASM or NASM where we can give certain helpful instructions to
the assembler. I'd use the ~%~ symbol to designate preprocessor
@@ -272,3 +254,21 @@ constant potentially
#+end_src
which when referred to (by ~$print-1~) would insert the bytecode given
inline.
+** DONE Rigid endian :LIB:
+Say a program is compiled on a little endian machine. The resultant
+bytecode file, as a result of using C's internal functions, will use
+little endian.
+
+This file, when distributed to other computers, will not work on those
+that use big endian.
+
+This is a massive problem; I would like bytecode compiled on one
+computer to work on any other one. Therefore we have to enforce big
+endian. This refactor is limited to only LIB as a result of only the
+~convert_*~ functions being used in the runtime to convert between
+byte buffers (usually read from the bytecode file directly or from
+memory to use in the stack).
+
+2024-04-09: Found the ~hto_e~ functions under =endian.h= that provide
+both way host to specific endian conversion of shorts, half words and
+words. This will make it super simple to just convert.