Ahh. I remember doing lots of TI82/83 calculator programming in Z80 and never considering using a C to Z80 compiler since it was so suboptimal. C was considered slow and a memory hog.
Most of these (other than the sprite routine) aren't that bad. Every byte counted when you only had 26KB free.