Forum > FPC development

what to do if my target MIPS cpu has no FPU

(1/4) > >>

Key-Real:
-Cfnone

spits:

Compiling ./rtl/ps1/system.pp
compproc.inc(838,47) Error: Identifier not found "double"
compproc.inc(839,47) Error: Identifier not found "double"
softfpu.pp(134,19) Error: Identifier not found "double"
softfpu.pp(134,25) Error: Error in type definition
softfpu.pp(144,19) Error: Identifier not found "extended"
softfpu.pp(144,27) Error: Error in type definition
system.pp(35,1) Fatal: There were 6 errors compiling module, stopping


-Cfsoft
generates assembler FPU code


some advises?

Thaddy:
You scale integers....

Key-Real:
yes, but is there not allready a .inc file in the rtl for thouse types

Laksen:
Check how the embedded target does it. Most of those don't have FPU support

But beware that it's not just a one liner. It likely requires lots of code to get completely right

Thaddy:
Scaling integers is a junior job and not very complex as long as the required precision is known.
For embedded:
define your precision... is usually enough.

Navigation

[0] Message Index

[#] Next page

Go to full version