From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22854 invoked from network); 11 Jun 1998 10:22:07 -0000 Received: from hayes.bru.ed.ac.uk (sss@129.215.237.131) by mail2.redhat.com with SMTP; 11 Jun 1998 10:22:07 -0000 Received: (from sss@localhost) by hayes.bru.ed.ac.uk (8.8.7/8.8.7) id KAA05292 for axp-list@redhat.com; Thu, 11 Jun 1998 10:28:34 GMT Date: Thu, 11 Jun 1998 10:28:34 GMT From: Shane Steven Sturrock Message-Id: <199806111028.KAA05292@hayes.bru.ed.ac.uk> To: axp-list@redhat.com Reply-To: Shane.Sturrock@ed.ac.uk Subject: More assembler stuff In-Reply-To: <3.0.5.32.19980605091857.0083a480@ellpspace.math.ualberta.ca> X-Mailer: Applixware 4.3 (807.65.0.22) To answer the few questions I had regarding compiler, I had tested the code with gcc and egcs 1.02 and the results were that a little fiddling with the assembler code gave a big improvement in performance. I was advised by Steven Tweedie (who happens to be based here in Edinburgh and was at our local Linux group meeting last week) to try 1.03a with haifa enabled. This I did and the result was the code ran at the same speed as before, in fact I could not see any difference in the output from 1.02 and 1.03a. Most scary though, optimisations higher than -O resulted in the code being slower as with 1.02. I think we will continue hand optimising for the moment. We can't release the source code because it is a commercial product but I can say that one of the tricks we used on the SGI to get better performance was to duplicate all variables in our inner loop and double the amount of work which gave the SGI compiler the clue to re-order instructions etc and gave it a better chance of using both pipelines. This resulted in the SGI code running about 40% quicker than it had previously. This same code on the alpha obviously produces code which doesn't fill both pipelines because the compiler doesn't take the hint so we hand tweak the code and get the same result as with the SGI, about 30-40% speedup. Of course, we are still only about 20% faster than the SGI while running a clock which is nearly triple the speed of our R10000s. No doubt we will do better when our LX motherboard arrives to replace the SX we didn't order but even so...... Steven assures me that the 21264 will solve all our problems and is blisteringly fast, since we're hoping to sell a software solution based on a commercially available budget box (and the alpha/linux combination is the prime candidate) this may well be what we need but we would still like to get the best out of the 21164, at least we're getting somewhere with this. Our problem uses virtually no floating point, the code runs in around 1MB of RAM too and we are not running out of registers either. I agree though, alphas are better than SGIs :-D Dr. Shane Sturrock - sss@holyrood.ed.ac.uk kernel: Calibrating delay loop.. ok - 529.53 BogoMIPS Mmmmmmmmmmm :-)