Tried to compile float.fs for the pic24, but fails due to missing f- and f+, are these somewhere else, and should it then be noted in the header as a dependancy?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ahh, I see you have to set FLOATS=1 in p24fj_ga_config.inc (for nano) however I get the following compile error:
Info:Projectisusingalargedatamemorymodelwhensmalldatamemorymodelissufficient.make[2]:Leavingdirectory'/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X'make[1]:Leavingdirectory'/Users/bernardmentink/My_Work/Arduino/flashforth/pic24/FF_24-30-33.X'../src/ff-pic24-30-33.s:7163:undefinedreferenceto`___addsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2318):../src/ff-pic24-30-33.s:7163: undefined reference to `___addsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x232e):Infunction`CFSUB_':../src/ff-pic24-30-33.s:7163: undefined reference to `___subsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2330):../src/ff-pic24-30-33.s:7163:undefinedreferenceto`___subsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2346): In function `CFMUL_':../src/ff-pic24-30-33.s:7163:undefinedreferenceto`___mulsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2348):../src/ff-pic24-30-33.s:7163: undefined reference to `___mulsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x235e):Infunction`CFDIV_':../src/ff-pic24-30-33.s:7163: undefined reference to `___divsf3'build/default/production/_ext/1360937237/ff-pic24-30-33.o(.text+0x2360):../src/ff-pic24-30-33.s:7163:undefinedreferenceto`___divsf3'
etc etc ..
EDIT: I presume I need the Microchip maths lib, where do I get that?
EDIT2: Microcip webiste says the floating point lib is included free with the compiler. So not sure why this error ..
Last edit: Bernard Mentink 2023-11-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tried to compile float.fs for the pic24, but fails due to missing f- and f+, are these somewhere else, and should it then be noted in the header as a dependancy?
etc etc ..
EDIT: I presume I need the Microchip maths lib, where do I get that?
EDIT2: Microcip webiste says the floating point lib is included free with the compiler. So not sure why this error ..
Last edit: Bernard Mentink 2023-11-23
In xc16-ld you have to link with -lm and include the standard libraries by clearing the Exclude standard libraries tickbox.
Great, thanks. That worked. Maybe some instructions in the header of float.fs would be useful
Last edit: Bernard Mentink 2023-11-23
Here are some examples of use.