Re: [cc65] floating point support redux

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-04-08 20:51:33
On Fri, Apr 02, 2010 at 12:14:43AM -0500, Kevin Schuetz wrote:
> Not much has been said about floating point support for a while now.

Maybe for a reason? :-)

> 1.  A 6502 simulator that can be employed by the compiler, linker,
> and assembler at compile/link/assemble-time.  This simulator would
> execute the same 6502 routines that will be used in runtime library
> for floating point operations.

Writing the floating point routines in C is probably easier than writing the
simulator. And, having two implementations makes it easier to find problems,
because you can check the results against each other.

> 2.  Link the compiler with MPFR/GMP
[...]

You seem to assume that the problem is in the floating point itself. That is
not really the case. Admitted, writing FP for the 6502 is not as easy as
writing it in C for the PC, but the standard operators (+-*/) aren't really
difficult either. The real work is getting support into the compiler, and
writing all the library extensions for the 6502 (think about printf ...).

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Apr 8 20:51:41 2010

This archive was generated by hypermail 2.1.8 : 2010-04-08 20:51:44 CEST