Why do C to Z80 compilers produce poor code? (2018)
Well, while certainly imperfect, some like SDCC are good enough to write some games with nontrivial logic.<p>Here’s an open source game (disclosure: I wrote it) that compiles with SDCC and runs a game involving a flood fill algorithm, a tiny GUI with checkboxes and buttons and only one assembly routine, all running on the Amstrad CPC464 and above:
<a href="https:&#x2F;&#x2F;github.com&#x2F;cpcitor&#x2F;color-flood-for-amstrad-cpc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cpcitor&#x2F;color-flood-for-amstrad-cpc</a><p>It’s much easier to write and much faster (and probably smaller) to run than the same in BASIC.