Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further code size reductions #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

unwind
Copy link
Contributor

@unwind unwind commented Mar 1, 2014

Hi! I just ... was bored, and decided to go another round trying to shrink the code size of the minimatrix firmware.

If my comparison powers are working, the latest commit makes the output 88 bytes smaller than your HEAD.

Which ... isn't a lot at all, but at least it's something, right? :)

I haven't tested this on the actual hardware, so merge at your own risk. I'd be very interested to hear if it works, if you decide to use this code.

Also, I realize that offer for free hardware probably expired long ago, and I already got mine. This was just for fun.

Regards,

/Emil

@joshgoebel
Copy link

What is the absolute code size after these changes? I'm curious approx how much of the 4k is still usable if I wanted to add some graphics routines of my own.

@unwind
Copy link
Contributor Author

unwind commented Mar 16, 2014

Here's what the build says:

avr-size main.elf
text       data     bss     dec     hex filename
3830        276      31    4137    1029 main.elf

So it clocks in at around 93% full now, which doesn't really leave a lot of space, unfortunately.

Uh, or something. I really don't understand this fully; as far as I can see the ATtiny 4313 only has 4 KB of flash and 256 bytes of EEPROM, so I don't quite understand where the above fits. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants