Get 20M+ Full-Text Papers For Less Than $1.50/day. Start a 7-Day Trial for You or Your Team.

Learn More →

Compiler support for floating‐point computation

Compiler support for floating‐point computation Predictability is a basic requirement for compilers of floating‐point code—it must be possible to determine the exact floating‐point operations that will be executed for a particular source‐level construction. Experience shows that many compilers fail to provide predictability, either because of an inadequate understanding of its importance or from an attempt to produce locally better code. Predictability can be attained through careful attention to code generation and a knowledge of the common pitfalls. Most language standards do not completely define the precision of floating‐point operations, and so a good compiler must also make a good choice in assigning precisions of subexpression computation. Choosing the widest precision that will be used in the expression usually gives the best trade‐off between efficiency and accuracy. Finally, certain optimizations are particularly useful for floating‐point and should be included in a compiler aimed at scientific computation. But predictability is more important than efficiency; obtaining incorrect answers fast helps no one. http://www.deepdyve.com/assets/images/DeepDyve-Logo-lg.png Software: Practice and Experience Wiley

Compiler support for floating‐point computation

Software: Practice and Experience , Volume 18 (7) – Jul 1, 1988

Loading next page...
 
/lp/wiley/compiler-support-for-floating-point-computation-JG5f1zuNSa

References (9)

Publisher
Wiley
Copyright
Copyright © 1988 Wiley Subscription Services, Inc., A Wiley Company
ISSN
0038-0644
eISSN
1097-024X
DOI
10.1002/spe.4380180709
Publisher site
See Article on Publisher Site

Abstract

Predictability is a basic requirement for compilers of floating‐point code—it must be possible to determine the exact floating‐point operations that will be executed for a particular source‐level construction. Experience shows that many compilers fail to provide predictability, either because of an inadequate understanding of its importance or from an attempt to produce locally better code. Predictability can be attained through careful attention to code generation and a knowledge of the common pitfalls. Most language standards do not completely define the precision of floating‐point operations, and so a good compiler must also make a good choice in assigning precisions of subexpression computation. Choosing the widest precision that will be used in the expression usually gives the best trade‐off between efficiency and accuracy. Finally, certain optimizations are particularly useful for floating‐point and should be included in a compiler aimed at scientific computation. But predictability is more important than efficiency; obtaining incorrect answers fast helps no one.

Journal

Software: Practice and ExperienceWiley

Published: Jul 1, 1988

Keywords: ; ;

There are no references for this article.