[ntp:questions] Re: How many Intel x86 CISC instructions needed to decode NTP time field (ignoring complexities of decoding full packet, re: NTP broadcasting)?

Richard B. Gilbert rgilbert88 at comcast.net
Tue Jul 11 12:30:06 UTC 2006


Max Power wrote:

> How many Intel x86 CISC instructions needed to decode NTP time field 
> (ignoring complexities of decoding full packet, re: NTP broadcasting)?
> 
Write the code and count!  IIRC, it's 32 bits of seconds since 1 January 
1970, and 32 bits of fractional seconds.

> From my understanding most NTP code is nearly exclusively compiled C++, 
> efficient -- but not quite assembler.

C not C++

> 
> For RISC microcontroller applications and other CPU designs (like DSPs) --  
> NTP decoding may have to be done via assembler.
> 

I believe that cross-compilers are available for many microcontrollers.




More information about the questions mailing list