Re: [cc65] Floating point support

Date view Thread view Subject view

From: Christian Groessler (chris_at_groessler.org)
Date: 2002-05-22 10:24:11


Hi,

On 05/22/2002 09:15:17 AM ZE2 Ullrich von Bassewitz wrote:
>
>Hi!
>
>The approach I suggest is to write a portable library first. If you can use
>system depdendent stuff later to make it faster and shorter: good! If not,
>then you do still have a solution that works on all platforms.

I think (esp. from space reasons), even if there is a reference IEEE
implementation available, there should be an option to use the ROM
based float routines. Another reason to have this, is that then the
results of calculations are the same as when done in BASIC on the
machine.

>This is not enough. The C standard requires, that computations done in the
>compiler generate the same results as computations done at runtime - which
>does usually mean that the compiler MUST use the same float representation as
>the target machine.

Hmm, how does then a i386->vax compiler work? Afaik, Vaxen don't have
IEEE fp.

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-05-22 10:24:10 CEST