[Top][All Lists]

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

RE: [avr-gcc-list] Add builtins in avr target.

From: Weddington, Eric
Subject: RE: [avr-gcc-list] Add builtins in avr target.
Date: Mon, 21 Apr 2008 12:36:19 -0600


> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Rolf Ebert
> Sent: Monday, April 21, 2008 10:24 AM
> To: Anatoly Sokolov
> Cc: address@hidden
> Subject: Re: [avr-gcc-list] Add builtins in avr target.
> Anatoly Sokolov schrieb:
> > Hi.
> > 
> >> Why can not this be done with library/inline functions?
> > 
> > I consider that use builtins  allows to realize universal delay 
>  > function easier. Also use builtins will allow to the same delay
>  > funcianality it ADA language.
> I have no problem in Ada calling inline assembler functions 
> for exactly 
> this purpose.  I expect to have a hard time, however, to 
> figure out how 
> to call the builtin function from the Ada front end.
> I really don't see the benefit of the builtins, neither for C 
> nor for Ada.

If I understand the internals correctly, if we move code from avr-libc
inline assembly macros to GCC builtins, then *eventually* the avr back
end could call these builtins in code generation as needed. So, in
general, I support the idea of having these builtin functions in the avr
port at some point.

reply via email to

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