I'm writing a program for the ATTiny85 chip, that allows each attiny to talk to each other using my own method.
I was working on it today when I bumped into something interesting. As you may know, each attiny85 only has 8192 bytes for the program, so I need to be smart with the way I write the code. When I compile the program with this code snippet:
I figured it out....
If all my delays are the same, the program takes up less space... When I was changing them to 100 vs 10, they wouldn't match the other two delays I have in loop().
Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.
Repeated cross-posting will result in a suspension from the forum.
In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.
maxpo:
The only difference is the length of the delays...
A delay of 10 seems to take up more space than a delay of 100
10 can probably be represented as an immediate literal constant in an instruction, but 100 can't, so requires extra instructions to load and manipulate