| ??? 01/19/05 11:23 Read: times |
#85285 - Looking in the wrong place! Responding to: ???'s previous message |
As I said before, there are certainly some little tweaks you could make that would save you the odd byte here & there in your 1-Wire code, but that's just chicken-feed; you would be fiddling while Rome burns!
Your big problem is that your Code space (12K?) is 99.5% full! You need to be looking to save several K bytes - not just the odd one or two! You need to review the whole of your code for inefficiencies; eg, each of your 1-Wire functions has several inline delay loops - could you not call a delay function instead? Would that help? Look out for code like this: if (!SDA4) status=1; else status=0;which is really just status = !SDADo you even need to invert it at all? If this sort of thing is repeated throughout your code, there's probably lots of savigns to be had! There have been several threads both here and on the Keil forum about writing optimum 'C' Does your compiler have additional optimisation levels you could use? |
| Topic | Author | Date |
| Saving Code memory | 01/01/70 00:00 | |
| Same topic discussed in different thread | 01/01/70 00:00 | |
| Existing thread | 01/01/70 00:00 | |
| Why so fearful ??? | 01/01/70 00:00 | |
| why not multidrop | 01/01/70 00:00 | |
| Customer replacement | 01/01/70 00:00 | |
| USE ALTERNATIVE PROGRAMMING TECHNIQUE | 01/01/70 00:00 | |
| Looking in the wrong place! | 01/01/70 00:00 | |
| why not spend another $ | 01/01/70 00:00 | |
| use a mask ! | 01/01/70 00:00 | |
Solved | 01/01/70 00:00 |



