6

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

AbhinavChoudhury
  • 1,167
  • 1
  • 18
  • 38

2 Answers2

8

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.

Carl Norum
  • 219,201
  • 40
  • 422
  • 469
1

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.

Mackie Messer
  • 7,118
  • 3
  • 35
  • 40