4 ms·
It's been a long time since I've done ASM but do I understand it right that this implementation compiles each function and then executes it immediately? Or does
by distcs 3y ago
It's been a long time since I've done ASM but do I understand it right that this implementation compiles each function and then executes it immediately? Or does it really compile the whole source code and then execute the binary generated?
And where is the compiled binary saved? Is it kept temporarily in memory itself for immediate execution? Or is the compiled binary saved back to the disk?
If someone could point me to the right sections of the code that answer these questions, it'd be of great help! Thanks!
- bluetomcat 3y agoLooks like a recursive-descent parser that emits instructions in memory as it parses. Then it executes them immediately (sectorc.s): ;; done compiling, execute the binary execute: push es ; push the codegen segment push word [bx] ; push the offset to "_start()" push 0x4000 ; load new segment for variable data pop ds retf ; jump into it via "retf"
- userbinator 3y agoDoesn't even have room for recursive descent or any sort of operator precedence.