Floating point calculations in a processor with no FPU

别说谁变了你拦得住时间么 提交于 2020-01-03 15:17:28

问题


Is it possible to perform floating point operations in an embedded processor that does not have a Floating Point Unit?


回答1:


Yes, you just have to do it in software. Your compiler may provide support, or you may need to roll your own. There are freely-available implementations, too.




回答2:


Yes, e.g. early Linux kernels did emulate i387 floating point instructions in the kernel. It was rather slow, but allowed you to use the same binary on computers with and without a floating point unit.



来源:https://stackoverflow.com/questions/21121141/floating-point-calculations-in-a-processor-with-no-fpu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!