DocumentCode :
421334
Title :
Detecting overflow detection
Author :
Kotlyar, Vladimir ; Moudgill, Mayan
Author_Institution :
Sandridge Technol., Inc., White Plains, NY, USA
fYear :
2004
fDate :
8-10 Sept. 2004
Firstpage :
36
Lastpage :
41
Abstract :
Fixed-point saturating arithmetic is widely used in media and digital signal processing applications. A number of processor architectures provide instructions that implement saturating operations. However, standard high-level languages, such as ANSI C, provide no direct support for saturating arithmetic. Applications written in standard languages have to implement saturating operations in terms of basic two´s complement operations. In order to provide fast execution of such programs it is important to have an optimizing compiler automatically detect and convert appropriate code fragments to hardware instructions. We present a set of techniques for automatic recognition of saturating arithmetic operations. We show that in most cases the recognition problem is simply one of Boolean circuit equivalence. Given the expense of solving circuit equivalence, we develop a set of practical approximations based on abstract interpretation. Experiments show that our techniques, while reliably recognizing saturating arithmetic, have small compile-time overhead. We also demonstrate that our approach is not limited to saturating arithmetic, but is directly applicable to recognizing other idioms, such as add-with-carry and absolute value.
Keywords :
fixed point arithmetic; high level languages; optimising compilers; ANSI C; Boolean circuit equivalence; compile-time overhead; digital signal processing; fixed-point saturating arithmetic; hardware instructions; optimizing compiler; overflow detection; processor architectures; saturating arithmetic operations; standard high-level languages; ANSI standards; Circuits; Computer languages; Digital arithmetic; Digital signal processing; Fixed-point arithmetic; High level languages; Optimizing compilers; Permission; Software libraries;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Hardware/Software Codesign and System Synthesis, 2004. CODES + ISSS 2004. International Conference on
Print_ISBN :
1-58113-937-3
Type :
conf
DOI :
10.1109/CODESS.2004.240660
Filename :
1360476
Link To Document :
بازگشت