L1VM - stack check

Ich entwickelte einen Stack Check für die VM. Der soll die VM sicherer machen. Wenn in “include/global.h” “STACK_CHECK” mit 1 definiert wird, ist der Stack Check aktiv. Ein Testprogramm ist “prog/stack.l1com”, das ohne Fehler laufen sollte. Es wird geprüft ob der Variablentyp auf dem Stack mit dem übereinstimmt was vom Stack genommen wird. Einige Programme laufen nicht mehr! Ich muss sie auf Fehler prüfen.
—–
I developed a stack check for the VM. This should make the VM more secure. If “STACK_CHECK” in “include/global.h” is defined by 1 then the stack check will be active. A test program is “prog/stack.l1com” which should run without errors. At run time the variable type on the stack is checked to match the type that will be taken from stack. Some programs still can’t be run. I have to check them for errors.