benheck/attiny10_game

Space reduction

Closed this issue · 2 comments

I've found I can save 22 bytes (11 instructions) of program space by declaring the gameOver and drawPF functions as static, allowing the compiler to "inline" those functions.

This should also reduce stack usage, allowing more valuable RAM to be used. I haven't calculated that completely, but drawPF alone uses four stack bytes, which are saved otherwise.

Nice!

closed by #3