News for hackers. Stuff that matters.
Re:One-pass Compiler by stevekemp on Saturday May 23, 2020 @02:43PM (#23285337)
Good clarification, and exactly right!

Later I do walk back over the bytecode and remove the nops. But I have to update all JMP/CALL instructions to cope with the changed destination offsets. Not a hard job in my case, as there are only a couple of instructions which refer to byte-offsets.

(If I allowed "LD A,[BC]", or similar permuations I'd have a lot more work to do.)

There are no comments on this comment yet.