<story><title>Explaining my fast 6502 code generator</title><url>https://pubby.games/codegen.html</url></story><parent_chain></parent_chain><comment><author>nstbayless</author><text>I may have misunderstood, but I believe step 1 (eliding loads) is simply a cache scheduling problem. The optimal solution is the greedy &amp;quot;furthest in the future&amp;quot; eviction policy.</text></comment>
<story><title>Explaining my fast 6502 code generator</title><url>https://pubby.games/codegen.html</url></story><parent_chain></parent_chain><comment><author>userbinator</author><text>I&amp;#x27;d like to see this same technique applied to x86, and what the performance is like without the &amp;quot;illegal instructions&amp;quot; (omitting them from generation would probably be trivial). It&amp;#x27;s relatively well known that one of the ways Asm programmers can beat compilers is on instruction selection, and that&amp;#x27;s what this technique seems to excel at.</text></comment>