J4 ›› 2013, Vol. 35 ›› Issue (8): 8-14.
• 论文 • Previous Articles Next Articles
DAN Xiaoqiang,CHEN Yueyue,SUN Haiyan,YANG Liu,LUO Jie,XIN Naijun,WANG Ji
Received:
Revised:
Online:
Published:
Abstract:
Matrix is a highperformance DSP processor for soft base stations. The saturation arithmetic instruction is of importance in Matrix, which enables the DSP algorithms more secure, accurate and efficient. As a result, supporting saturation arithmetic instructions mapping is critical for Matrix compiler, which is developed based on GCC. However, the current versions of GCC only support saturation arithmetic instruction with fixed-point types rather than integer or float types. Based on the internal mechanism of instructions mapping in GCC, an implementation scheme of C extensions based saturation arithmetic instructions is proposed. Further more, the proposed scheme is validated by implementing the saturation integer addition instruction mapping, and the results show that this scheme can support Matrix's saturation arithmetic instruction mapping efficiently and accurately.
Key words: gcc;saturation arithmetic;instruction mapping;C extensions
DAN Xiaoqiang,CHEN Yueyue,SUN Haiyan,YANG Liu,LUO Jie,XIN Naijun,WANG Ji. Design and implementation of saturation arithmetic instructions mapping in Matrix complier [J]. J4, 2013, 35(8): 8-14.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://joces.nudt.edu.cn/EN/
http://joces.nudt.edu.cn/EN/Y2013/V35/I8/8