开发者

Floating point operations in GCC

开发者 https://www.devze.com 2022-12-25 16:15 出处:网络
Anyone knows where can I find the floating functions for non FPU processor (SH-3) called __mulsf3, __divsf3, 开发者_高级运维__addsf3, __subsf3, __ltsf2 and __floatsisf. I read that those functions are

Anyone knows where can I find the floating functions for non FPU processor (SH-3) called __mulsf3, __divsf3, 开发者_高级运维__addsf3, __subsf3, __ltsf2 and __floatsisf. I read that those functions are in libgcc but linking against libgcc does not work. Also I read that SH3 devs moved those functions to another lib (maybe libfloat or libgcc_os).

Anyone has a clue? I would prefer to have a look at the source.

Thanks!


If I'm not mistaken, many of these are generated during GCC's build process and they are highly dependent on system and architecture.

What I do know for sure it that LLVM's compiler-rt strives to provide an alternative. The sources are located here:

http://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/


The implementation details have changed over time, but they're supposed to be in libgcc. However, SH being a multilib system, maybe you're trying to link to the wrong libgcc?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号