tsoding / bm

Simple compiler ecosystem
MIT License
166 stars 16 forks source link

Handle native instructions properly in code generators #447

Closed rexim closed 3 years ago

rexim commented 3 years ago

The id of the write native is not fixed to 0. It depends on the order of the definition in the original BASM file. The actual native should be determined by its name.

cc @zhiayang @herrhotzenplotz @kolumb sorry that I did not catch that during the reviews. Pinging you just to let you know about this. Also, please let me know if my changes introduced any bugs