Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Floating point calculations in a processor with no FPU

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

like image 654
AbhinavChoudhury Avatar asked Jan 14 '14 18:01

AbhinavChoudhury


2 Answers

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.

like image 160
Carl Norum Avatar answered Sep 24 '22 02:09

Carl Norum


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.

like image 22
Mackie Messer Avatar answered Sep 23 '22 02:09

Mackie Messer