View Single Post
  #6   Spotlight this post!  
Unread 26-10-2004, 21:57
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: Has anyone had lack of processing power?

Quote:
Originally Posted by Rickertsen2
Where did you come up with these figures? The time difference btw float and fixed/decimal depends on the operation. For some operations its not that great. For others it is very large. Same with the instruction cycles.
I haven't done any real investigating into this but I'm going to have to say that it is almost guaranteed that a floating point operation will take an order of magnitude longer than the corresponding integer operation. For processors with a floating point unit, floating point operations take significantly longer than integer operations. Given that the PIC has to emulate floating point operations, what may be a one cycle operation (say, adding two integers) may take many more cycles because of all the additional operations required to unpack the floating point, perform the operation, and then repeat it.

Floating point operations on this processor will take much longer than integer operations. However, this may or may not be significant depending on other factors.

Matt