Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Intel arithmetics on Alpha ?
@ 1998-09-22  4:00 Martin Reismann
  1998-09-22  4:00 ` Dr Ivan D Reid, muSR Facility
  1998-09-23  4:00 ` emu
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Reismann @ 1998-09-22  4:00 UTC (permalink / raw)


Does anyone know how to make a DEC Alpha
behave like an Intel Pentium in numerical calculation.

I tried to use the egcs 1.0.3 C-Compiler on both machines.
But the results are still different.

Regards,
Martin Reismann




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel arithmetics on Alpha ?
  1998-09-22  4:00 Intel arithmetics on Alpha ? Martin Reismann
@ 1998-09-22  4:00 ` Dr Ivan D Reid, muSR Facility
  1998-09-23  4:00 ` emu
  1 sibling, 0 replies; 4+ messages in thread
From: Dr Ivan D Reid, muSR Facility @ 1998-09-22  4:00 UTC (permalink / raw)


In article <3606EF2D.1089892F@oeaw.ac.at>, Martin Reismann wrote:
>Does anyone know how to make a DEC Alpha
>behave like an Intel Pentium in numerical calculation.

>I tried to use the egcs 1.0.3 C-Compiler on both machines.
>But the results are still different.

	Are there switches to force IEEE-format on both platforms?  Native
Intel (internal) format uses 80-bit numbers while the Alpha is limited to
64-bit, so if the Pentium code is able to keep intermediate code on the
FP stack (or stores temporaries in the 80-bit format) then the results may
well diverge.

-- 
Ivan Reid, Paul Scherrer Institute, CH.     			reid@psi.ch
 Support Jayne Hitchcock: http://www.geocities.com/hollywood/6172/helpjane.htm



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel arithmetics on Alpha ?
  1998-09-23  4:00 ` emu
@ 1998-09-23  4:00   ` Jonathan Stone
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Stone @ 1998-09-23  4:00 UTC (permalink / raw)


In article <6ub25e$il5$1@news-1.news.gte.net>, "emu" <emu@nospam.ecubics.com> writes:
|> Hi Martin,
|> 
|> Are you sure that you get always same results on the Pentiums ?
|> I mean, with different optimizations ?
|> The problem is, they sometimes have to save the FP contents, and sometimes
|> not, leading to different result due to opt flags.


See gcc -ffloat-store. Unless egcs doesn't support that anymore.


|> Martin Reismann <Martin.Reismann@oeaw.ac.at> wrote in article
|> <3606EF2D.1089892F@oeaw.ac.at>...
|> > Does anyone know how to make a DEC Alpha
|> > behave like an Intel Pentium in numerical calculation.
|> > 
|> > I tried to use the egcs 1.0.3 C-Compiler on both machines.
|> > But the results are still different.
|> > 
|> > Regards,
|> > Martin Reismann



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Intel arithmetics on Alpha ?
  1998-09-22  4:00 Intel arithmetics on Alpha ? Martin Reismann
  1998-09-22  4:00 ` Dr Ivan D Reid, muSR Facility
@ 1998-09-23  4:00 ` emu
  1998-09-23  4:00   ` Jonathan Stone
  1 sibling, 1 reply; 4+ messages in thread
From: emu @ 1998-09-23  4:00 UTC (permalink / raw)


Hi Martin,

Are you sure that you get always same results on the Pentiums ?
I mean, with different optimizations ?
The problem is, they sometimes have to save the FP contents, and sometimes
not, leading to different result due to opt flags.

cheers,
emanuel

Martin Reismann <Martin.Reismann@oeaw.ac.at> wrote in article
<3606EF2D.1089892F@oeaw.ac.at>...
> Does anyone know how to make a DEC Alpha
> behave like an Intel Pentium in numerical calculation.
> 
> I tried to use the egcs 1.0.3 C-Compiler on both machines.
> But the results are still different.
> 
> Regards,
> Martin Reismann
> 
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-09-23  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-22  4:00 Intel arithmetics on Alpha ? Martin Reismann
1998-09-22  4:00 ` Dr Ivan D Reid, muSR Facility
1998-09-23  4:00 ` emu
1998-09-23  4:00   ` Jonathan Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox