This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: real.c implementation


> >I agree.  gcj, if course, requires exact IEEE float conversion and
> >relies on gcc to do it right,
> 
> And what happens if the platform doesn't have IEEE floating point and
> uses a different floating point format?

Obviously an even vaguely correct Java implementation requires a target
that is at least vaguely IEEE compliant. So if you have nothing like
IEEE floating-point in sight, you have to either write an emulator (and
consider the emulator to be the target of code generation), or forget
about having an even vaguely correct Java implementation.

Of course for Ada, the situation is more complex, Ada has a precise
arithmetic model that is parametrized by the target, and carefully designed
to accomodate all usual computer floating-point arithmetic.
So "correct" for Ada is quite target dependent when it comes to floating-point.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]