Forum > FPC development

[SOLVED] what to do if my target MIPS cpu has no FPU

<< < (2/4) > >>

Laksen:
Thaddy, please keep on topic. This is clearly about softfpu development for the RTL

Thaddy:
But I am on topic.

PascalDragon:

--- Quote from: Key-Real on April 18, 2024, 02:02:29 pm ---some advises?

--- End quote ---

You might need to add


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---{$define cpufpemu}
to the MIPS related defines in compiler/fpcdefs.inc. I have not tested however whether that is enough.


--- Quote from: Thaddy on April 18, 2024, 07:54:39 pm ---But I am on topic.

--- End quote ---

You are absolutely offtopic, because as usual you did not read and understand the original post to grasp what this topic is about: It is about using/enabling the software floating point support provided by the compiler for a specific target, not about using fixed comma arithmetic.

Key-Real:
I added the
{$define cpufpemu}

now can't compile anymore


/run/media/key-real/E3AF-F107/code/source/compiler/ppc -Ur -Xs -O2 -n -Fumipsel -Fusystems -Fu/run/media/key-real/E3AF-F107/code/source/rtl/units/x86_64-linux -Fimipsel -FEmipsel/bin/x86_64-linux -FUmipsel/units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -dRELEASE -DD2024/04/18 -dmipsel -dGDB -Fumips -Sew -o/run/media/key-real/E3AF-F107/code/source/compiler/ppcrossmipsel pp.pas
nld.pas(844,54) Error: Identifier not found "fpu_libgcc"
nld.pas(1623) Fatal: There were 1 errors compiling module, stopping

PascalDragon:

--- Quote from: Key-Real on April 18, 2024, 10:16:29 pm ---nld.pas(844,54) Error: Identifier not found "fpu_libgcc"

--- End quote ---

Either add fpc_libgcc to tfputype in compiler/mips/cpuinfo.pas or protect it using {$if declared(fpc_libgcc)}.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version