Re: [cc65] floating point support redux

From: Groepaz <groepaz1gmx.net>
Date: 2010-04-08 18:29:47
On Freitag 02 April 2010, you wrote:
> Not much has been said about floating point support for a while now.
> 
> Maybe it is time to revive the discussion?
> 
> Before even a decision is made on what formats to use for floating point
> support, there exists the problem of the compiler treating floating
> point expressions the same way that the target does.
> 
> What do you think of these two ideas?

imho those both sound like "too much" to me to be honest.

my proposal would be like this:

- the compiler uses ieee754 floats. same calling conventions as for 32bit 
longs can be used. (optionally, doubles can be made the same as floats)
- floating point library routines may come at two flavours: one generic fully 
iee compliant emulator (to be written), and target specific routines which may
work on a different floating point format *internally* (i have such routines 
for c64, similar ones can probably be written for most targets that have basic 
in rom or sth). there might be a linker switch to select which of the two gets 
linked.

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org


----------------------------------------------------------------------
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 18:30:12 2010

This archive was generated by hypermail 2.1.8 : 2010-04-08 18:30:15 CEST