BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Features > 2007

Fixed vs. Floating Point: A Surprisingly Hard Choice

By Boris Lerner

February 12, 2007

(Fixed vs. Floating Point: A Surprisingly Hard Choice :  Page 1 of 1 )



The advantages of floating-point processors are well known. Without a doubt, floating-point implementations of many algorithms take fewer cycles to execute than fixed point code (assuming, of course, that the fixed-point code offers similar precision). Floating-point processors are also often much easier to program in assembly code. However, neither of these advantages matter all that much to the end designer. With the quality of compilers getting better and better each day, hardly anyone codes in assembly anymoreýand writing code in C is nearly equally simple, be it fixed or floating point. Moreover, in C one can certainly write floating point code for a fixed point processor, although it will take a significant performance hit. What does matter to the end designer is the final system's performance, cost and time to market. These are the metrics that I will try to estimate in the analysis below.

There is a myriad of processors out there, both fixed- and floating-point. Doing an analysis on each one would turn this paper into something comparable in size to an encyclopedia. So I will restrict my comparative analysis to two ADI processors -- Blackfin from the fixed point camp and SHARC as its floating point nemesis. We'll choose two members that are similarly priced -- ADSP-21531 Blackfin and ADSP-21375 SHARC, both selling at around $5 per part in reasonable quantities at the time of this writing.

One may think that, given a similar silicon price, one should choose the floating-point processor, simply because it can do the floating point, in case it is ever needed. But similar price of the silicon does not always translate into a similar price of the end system. For example, SHARC's power consumption for a similar fixed-point task is higher than that of the Blackfin, which results in more expense in the power supply design, among other things. In any case, a single application would, most likely, favor one processor or the other. Thus, to be fair, we'll consider four separate applications:

  • Military radar
  • Mobile TV
  • Professional audio effects processor
  • Automatic echo canceller in hands-free portable device

The choice of these applications is not entirely random.

 Page 1 of 1 


BYTE.com > Features > 2007
Dr. Dobb's Media Center

2008 International Mathematica Conference
Dr. Dobb's interviews Wolfram Research's Theo Gray, co-founder and Director of User Interfaces, and Roger Germundsson, Director of Research and Development, about the upcoming 2008 International Mathematica Conference.

How Do You Do Nightly Builds and Tests when there is No Overnight? Software Production in a Geographically Distributed Environment
Attend this Webcast and find out how to overcome common build-test-deploy challenges that affect all members of a distributed team, including: <ul> <li> Communication difficulties, because of time-zone and cultural differences</li> <li> Workflow challenges, like lack of documented procedures and build and test handoff problems</li> <li> Slow build and test cycles, broken builds, and other factors that hamper distributed team productivity</li> </ul> Thursday, September 25, 2005 " 11am PT / 2pm ET </p>

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
simple helix is the most trusted name in the hosting industry! Join us and host with the experts!
Sign Up & Get Full Access To The Definitive Online Book Collection With SkillSoft's Books24x7�.
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.
Automatically capture customer crash data, no debugger required. Support for .NET, C++, OS X, Java.
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.
Wanna see your ad here?
 

web2