News for hackers. Stuff that matters.
Re:One-pass Compiler by tom_mellior on Saturday May 23, 2020 @10:43AM (#23283340)
There is no way to "fill in the jump values" if you have already emitted the goto to a place you can't modify later. Like the featured article does, emitting its code with printf. I agree that you could emit code to an intermediate buffer, fix it up later, and still call this (a slightly more relaxed version of) one-pass compilation.
Re:One-pass Compiler by klyrs on Saturday May 23, 2020 @11:07AM (#23283530)
Fair point... kinda feels like passing the buck, but not having that memory overhead is nice