full-stack-hello
full-stack-hello copied to clipboard
minimal instruction set and assembler/compiler for "Hello World" execution
This is a naive idea at its infancy: Integrate this VM based code with native code. Allowing them to invoke each other. Some assumptions/limitations may have to be imposed to...
At the moment, DIV and MOD considers divide-by-zero (I'll call it as DBZ from now on) as unimplemented. We are in need of an exception handling mechanism when DBZ happens....
Should this instruction set be given a sound name? https://www.wikiwand.com/en/List_of_instruction_sets
Maybe somehow we can generate bytecode, and run from bytecode? without `assemble_from_file`.
I think this can be a goal for this VM, to make it a Turing complete VM (programmign language / instruction set ?) Some reference: * https://en.wikipedia.org/wiki/%CE%9C-recursive_function * https://math.stackexchange.com/questions/112011/how-to-prove-a-programming-language-is-turing-complete
Current design about opcode implement hook is to hook the corresponding implement to each instruction in `env->insts`, which the insts is read from file. Should it be hook on an...