On 01/05/2021 01:11, David Kelly wrote: > Has been a long time for me but Once Upon A Time it wasn’t just a matter > of “not using functions in the library”. AVR-gcc required primatives > other than startup code.
It still does - not just on AVR - also on ARM and others. It was quite amusing when I implemented the "internal" memcpy() - in C - only to find that the compiler outsmarted me and implemented it as a call to itself (which obviously crashed the stack). doh! So I've "borrowed" a few bits from avr-libc and avr-gcc to allow my project to build independently of them. -Ian