In processors that do not support floating-point instructions, using fixed-point arithmetic instead of floating-point emulation trades off computation accuracy for execution speed. This trade-off is often profitable. In many cases, like embedded systems, low-cost and speed bounds make it the only acceptable option. We present an environment supporting fixed-point code generation from C programs. It allows the user to specify the position of the binary point in the source code and let the converter automatically transform floating-point variables and operations. We demonstrate the validity of our approach on a series of experiments. The results show that, compared to floating-point, fixed-point arithmetic executed on an integer datapath has a limited impact on the accuracy. In the same time the fixed-point code is 3 to 8 times faster than its equivalent floating-point emulation on an integer datapath.
[1]
Henk Corporaal.
Microprocessor architectures - from VLIW to TTA
,
1997
.
[2]
Seehyun Kim,et al.
Fixed-point optimization utility for C and C++ based digital signal processing programs
,
1995,
VLSI Signal Processing, VIII.
[3]
Henk Corporaal,et al.
Code generation for transport triggered architectures
,
1994,
Code Generation for Embedded Processors.
[4]
Wonyong Sung,et al.
Fixed-point C language for digital signal processing
,
1995,
Conference Record of The Twenty-Ninth Asilomar Conference on Signals, Systems and Computers.
[5]
Paul M. Embree.
C Algorithms for Real-Time DSP
,
1995
.
[6]
Henk Corporaal,et al.
Efficient code generation for ASIPs with different word sizes
,
1997
.
[7]
Information technology — Generic coding of moving pictures and associated audio information — Part 2 : Video Technologies
,
2022
.
[8]
Stanley B. Lippman,et al.
Inside the C++ Object Model
,
1996
.
[9]
Heinrich Meyr,et al.
System level fixed-point design based on an interpolative approach
,
1997,
DAC.
[10]
GENERAL ASPECTS OF DIGITAL TRANSMISSION SYSTEMS ; TERMINAL EQUIPMENTS 5-, 4-, 3-AND 2-BITS SAMPLE EMBEDDED ADAPTIVE DIFFERENTIAL PULSE CODE MODULATION ( ADPCM )
,
.
[11]
Wonyong Sung,et al.
Fixed-point C compiler for TMS320C50 digital signal processor
,
1997,
1997 IEEE International Conference on Acoustics, Speech, and Signal Processing.