Machine-translated by Google. Questions are authored in English.
Top

Discussion

Comparing two parts that differ only in that one has a hardware floating point unit, the unit is worth paying for when the application

  • A.uses floating point only in its initialisation code
  • B.is written in C rather than in assembler
  • C.must run from a battery for several years
  • D.performs sustained floating point arithmetic in a timed loop

Answer: D

Correct answer: performs sustained floating point arithmetic in a timed loop

A hardware unit earns its cost where floating point operations happen often and to a deadline - a control loop, a filter, a transform - because software emulation takes tens or hundreds of cycles for what the unit does in one. Floating point confined to initialisation costs nothing worth optimising, and the language used is irrelevant since the compiler emits the same operations either way.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.