From: SourceForge.net <no...@so...> - 2006-08-06 19:09:03
|
Bugs item #1498479, was opened at 2006-05-31 22:10 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1498479&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: z80 port Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bing (hbingal) Assigned to: Nobody/Anonymous (nobody) Summary: sdcc Z80port math library update Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2006-08-06 21:09 Message: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1498479&group_id=599 |