Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: ASM vs. C

2009-01-15 by David VanHorn

> This is one of the reasons I don't trust architecture specific keywords
> (interrupt keywords in particular).
>
> And also a good illustration of where mixing asm with C can be of great
> benefit (reducing the latency substantially and decreasing size to boot)

This is hilarious to me in several layers.

The most obvious one is the one I pointed out, NOTHING needs be pushed.
Then we have the fact that ISRs aren't supposed to be able to count on
R1 being zeroed, but the code DOES that.

Can't a modern compiler figure out that all this was unnecessary?

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.