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

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

Re: Problem linking *without* avr-libc, libm, etc. (SOLVED)


From: Ian Molton
Subject: Re: Problem linking *without* avr-libc, libm, etc. (SOLVED)
Date: Tue, 22 Jun 2021 16:57:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

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



reply via email to

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