Hardware 版 (精华区)
发信人: edmcgy (达达尼), 信区: Hardware
标 题: DSP(Data Signal Processor)的应用(17)
发信站: 紫 丁 香 (Thu Apr 23 15:58:08 1998), 转信
Workaround/Solution
WORKAROUND/SOLUTION
===================
Problem is fixed for next release.
Title: Compiler gens internal error when res of sqrt func is used as arg to sqr
Bug #
Tool
Version
Fixed?
SDSsq03449
Compiler
V6.60
Fixed, will appear in next release.
Bug Description
BUG DESCRIPTION
===============
The compiler handles "fabs" function calls not by calling that function,
but by directly generating code for it. It didn't handle the case of
"fabs()".
i.e.
void main(void)
{
float a,b;
a = b = 4.0;
a = fabs(sqrt(b)); Result of sqrt is in accumulator
a = sqrt(a);
}
--
※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: edmcgy.hit.edu.c]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.172毫秒