4 ms·
It's a shame the author didn't include the C snippet so that we might verify this. Not that I'd be so surprised if avr-gcc doesn't produce spectacular code. So
by psychphysic 4y ago
It's a shame the author didn't include the C snippet so that we might verify this.
Not that I'd be so surprised if avr-gcc doesn't produce spectacular code. Some of this is very surprising. How could the compiler function of it doesn't know which registers have which values? Unless it was emitting very simple chunks.
- dezgeg 4y agoIn particular there seem to be couple of MMIO stores, maybe those are done with some accessor/macro which accidentally makes too much stuff volatile causing this extra zero-addition etc. So yes seeing all the code could give some clues...
- Beltalowda 4y agoHe included some code in the comments: https://bigmessowires.com/static/avr-gcc-main.cpp https://bigmessowires.com/static/avr-gcc-main.cpp