[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: Anatoly Sokolov
Subject: Re: [avr-gcc-list] Add builtins in avr target.
Date: Sat, 19 Apr 2008 01:00:56 +0400


> 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 

> Why does delay always have to be constant?

If to allow input parameter to be a variable then it will be necessary to 
perform division in run-time. It to add a unpredictable delay.
> How do we document functionality - for example resolution limitations?

"The  '__builtin_avr_delay_cycles (unsigneg long __n)' perform a delay of 
minimum __n cycles."

> How is this different from IAR?

I do not know. Im don't have IAR C installed.


reply via email to

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