Close

Using less memory than I thought

A project log for 1K LCD Tinyfont

A tiny pixel font rendered to an LCD display, in under 1K program space.

ZachZach 12/21/2016 at 16:510 Comments

I loaded my compressed font into the application, and was pretty bummed about program size- 1.1kB for just a lowercase font, and I'm still missing a ton of functionality.

Then, I realized that I'm overcalculating my memory usage by a long shot.

I was basing my calculation off the .hex file produced by the linker. This isn't right- I should be basing it off the actual program size saved to application ROM.

After copying the contents from the memory map in the Atmel simulator, I'm at 402 bytes. Way way way under!

Discussions