rrthomas / pforth

A portable Forth compiler
GNU General Public License v3.0
11 stars 1 forks source link

Reconsider abstraction of assembly emission #49

Open rrthomas opened 3 years ago

rrthomas commented 3 years ago

At the moment, we output assembly in Various Places; it would seem to make sense to do so only in compiler.fs. Can we rework the low-level compiler interface to make this possible?

We'd need to push the symbolic label machinery for branches into compiler.fs, and have a single point of emission of labels for execution tokens.