Path: utzoo!attcan!uunet!snorkelwacker!apple!usc!ucsd!hub.ucsb.edu!ucsbuxa!3003jalp From: 3003jalp@ucsbuxa.ucsb.edu (Applied Magnetics) Newsgroups: comp.unix.aix Subject: Re: XLF optimizer unreliable, inappropriate for benchmarks Keywords: fortran benchmark optimizer aix 6000 Message-ID: <6322@hub.ucsb.edu> Date: 20 Sep 90 23:04:12 GMT References: <384@nwnexus.WA.COM> Sender: news@hub.ucsb.edu Lines: 34 In article <384@nwnexus.WA.COM> golder@nwnexus.WA.COM (Warren Jones) writes: > [ gives a short Fortran program that optimizes incorrectly ] >Incidentally -- does anyone know if all the XL languages (including >C and Pascal) use the same optimizer? Until I'm sure of the >answer, I'm not using the C optimizer either. Well, I transliterated your example to C and got the same behaviour. Congratulations to your programmer for producing such a small example. #include main() { int b, i, k, m, n; int test; test= 1; i= k= m= 0; do { i++; if(test) { for(n= 0; n<3; n++) { m++; k++; b= k+1; } printf("k= %d, k-1= %d\n", k, k-1); } } while(i<2); } -- P. Asselin, Applied Magnetics Corp.