Torivon / MiniAdventure

A Pebble RPG Engine
MIT License
4 stars 3 forks source link

Optimize code size to fit on Aplite #29

Closed Torivon closed 8 years ago

Torivon commented 8 years ago

I would love to make this happen, but I'm not sure I can.

Torivon commented 8 years ago

For a while analyze-size reported 2200 bytes from an unknown file. Roughly half of this turned out to be from passing function pointers around. I have rewritten much of the code to use switch statements that directly call the functions. This has had a very small reduction in total size, but at least now I know which files are actually occupying the code space. There are still around 1100 bytes of unknown, though.

Torivon commented 8 years ago

Based on current code sizes and RAM requirements, I see no way to make this happen.