#1136 sdcc Z80port math library update

closed-out-of-date
z80 port (188)
5
2013-05-25
2006-05-31
Bing
No

SDCC version:
mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/
ds400/hc80 2.5.6 # <May 16 2005> <MINGW32>

I would like to follow up on the report #1497322. But
since I don't know how to do it, I am submitting this
new thread.
I downloaded one of the latest version. Now as you
said, the file frexpf.c and ldexpf.c can be compiled
with no problem. I compiled most of the missing
files, then put the *.asm and *.o file in
the /lib/z80 directory. After that, I add the
following lines to the z80.lib file
--------------------
fabsf.o
sincosf.o
sinf.o
cosf.o
errno.o
frexpf.o
ldexpf.o
asincosf.o
asinf.o
acosf.o
sincoshf.o
sinhf.o
coshf.o
tanhf.o
tancotf.o
tanf.o
cotf.o
atanf.o
atan2f.o
expf.o
logf.o
log10f.o
ceilf.o
floorf.o
modff.o
powf.o
sqrtf.o
time.o
-------------------
Now I can compile my own C code using the math
library with no compiler error report.
But when I run the actual program on my Z80
simulator, only expf function is working correctly. I
checked the actual execution, only to find out that
some of the instructions are trying to write into the
code area in the ram, which corrupts the whole
program.
I have attached a C program with all the compiled
files. Please let me know if you can find out what
exactly the problem is.
Thanks.

Discussion

  • Bing

    Bing - 2006-05-31

    sqrtf files

     
  • Maarten Brock

    Maarten Brock - 2006-08-06

    Logged In: YES
    user_id=888171

    Bing?,

    In SDCC 2.6.1 #4322 I've enabled the floating point
    support routines in the z80 libraries. They seem to work
    to me. Can you please check if this bug can be closed?

    Maarten

     
  • Maarten Brock

    Maarten Brock - 2007-05-20
    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks