gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] REAL precision


From: Gaius Mulley
Subject: Re: [Gm2] REAL precision
Date: Fri, 26 Jun 2009 11:37:00 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Waldek Hebisch <address@hidden> writes:

> This is essentially what GNU Pascal is doing to be compatible
> with legacy code.  I think that this approach works quite well.

Hi,

interesting information thanks..

> I would say that reducing precision of REAL at this time would
> be bad, because there is nontrivial set of programs which would be
> broken by lower precision.  While this set of programs may be
> smaller than set of programs which run too slow or require too
> much storage due to higher precision I think that possibility of
> breaking programs is much more seriouos than performance problems.

true, although there shouldn't be any performance degradation with the
approach outlined earlier as all library calls match their SHORTREAL
counterpart or their inlined intrinsic (no casting necessary), in
theory the GCC trees produced will be the same as if written in C.

The method also allows an easy upgrade/downgrade to higher/lower
precision counterparts which is visible in source form.  I also have a
fear of incompatible binary files on the same system which cannot be
checked by the linker,

regards,
Gaius


>
> -- 
>                               Waldek Hebisch
> address@hidden 
>
>
> _______________________________________________
> gm2 mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/gm2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]