问题
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