From: lindahl@pbm.com (Greg Lindahl)
Subject: Re: MFlops Comparison using g77 (bad news)
Date: 1997/09/17 [thread overview]
Message-ID: <5vn9fu$l1p@news1.zippo.com> (raw)
In-Reply-To: 5vn7si$26q$1@palladium.transmeta.com
torvalds@transmeta.com (Linus Torvalds) writes:
> Change them all to "long" and see whether that makes a difference. At
> least in theory gcc should have a much easier time with long, simply
> because then gcc is using only 64-bit quantities.
>
> With your current code, you're mixing 32-bit and 64-bit arithmetic,
> which limits the code generation a lot (because order matters when you
> mix different sizes).
Actually, we've already seen that the g77 generated code is more
restrictive than the f2c/gcc generated code. Yes, it's a difficult
problem, but it's extremely important to get this right. Presumably
Dec's compiler does, although it may not handle wrap-around
properly... you would only notice that for huge arrays.
> On a PPro you'll never see this, because everything is 32 bits, obviously,
You might be able to similarly confuse gcc by using lots of shorts.
I once worked on a million line F66 program which broke the VMS optimizer
by using lots of INTEGER*2 variables. If you have different cases for
different sizes of things, you leave yourself open to having
a tiny bug in a rarely-used case...
-- g
next prev parent reply other threads:[~1997-09-17 4:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-09-16 4:00 MFlops Comparison using g77 (bad news) Luke Lonergan
1997-09-16 4:00 ` Craig Burley
1997-09-16 4:00 ` Toon Moene
1997-09-16 4:00 ` MFlops Comparison using g77 (bad news) - bench.tgz (1/1) Luke Lonergan
1997-09-16 4:00 ` MFlops Comparison using g77 (bad news) Greg Lindahl
1997-09-16 4:00 ` MFlops Comparison using g77 (bad news) - bench.tgz (0/1) Luke Lonergan
1997-09-18 4:00 ` H.W. Stockman
1997-09-18 4:00 ` Thomas Leitner
1997-09-18 4:00 ` Andrew G. Morgan
1997-09-16 4:00 ` MFlops Comparison using g77 (bad news) Luke Lonergan
1997-09-17 4:00 ` Linus Torvalds
1997-09-17 4:00 ` Rowan D. Hughes
1997-09-17 4:00 ` Xiaoguang Zhang
1997-09-17 4:00 ` Greg Lindahl [this message]
1997-09-17 4:00 ` Luke Lonergan
1997-09-17 4:00 ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) Luke Lonergan
1997-09-17 4:00 ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) - dpkernel.tgz (1/1) Luke Lonergan
1997-09-17 4:00 ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (0/1) - dpkernel.tgz (0/1) Luke Lonergan
1997-09-17 4:00 ` MFlops Comparison using g77 (bad news) - dpkernel.tgz (1/1) Luke Lonergan
1997-09-19 4:00 ` MFlops Comparison using g77 (bad news) James Lewis Nance
1997-09-22 4:00 ` Luke Lonergan
1997-09-16 4:00 ` Ulrich Ruede
1997-09-16 4:00 ` H.W. Stockman
1997-09-16 4:00 ` Greg Lindahl
1997-09-18 4:00 ` Greg Lindahl
1997-09-19 4:00 ` Burkhard Neidecker-Lutz
1997-09-20 4:00 ` Toon Moene
1997-09-22 4:00 ` Luke Lonergan
-- strict thread matches above, loose matches on Subject: below --
1997-09-17 4:00 Robert Harley
1997-09-22 4:00 ` Luke Lonergan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox