6

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

AbhinavChoudhury
  • 1,097
  • 1
  • 17
  • 36

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
  • 210,715
  • 34
  • 410
  • 462
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
  • 6,901
  • 3
  • 35
  • 39