avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static class member as interrupt handler works, but not if class is


From: David Kelly
Subject: Re: static class member as interrupt handler works, but not if class is templated
Date: Mon, 12 Apr 2021 08:49:33 -0500

All of this might not be a bug at all but an undefined work around for 
deficiencies in C++ primitive functions in the avr-gcc support library? To 
prevent one from using?

In the early days of avr-gcc, just plain C, not all support primitive functions 
were reentrant. If memory serves me, math functions on longs were dangerous. 
That not all registers were stacked on entry to the interrupt handler (that 
would be costly) and the compiler (and support library) assumed some registers 
were free to use without preserving across function calls.

--
David Kelly N4HHE, dkelly@HiWAAY.net
============================================================
Whom computers would destroy, they must first drive mad.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]