In message <[EMAIL PROTECTED]> Daniel Grunblatt <[EMAIL PROTECTED]> wrote:
> As you can see the problem is still that you are not using gcc 3.0.2, > please take 10' minutes and compile gcc 3.0.2, I will now compile 3.0.1 > just to see what happens. I have been having a very hard time believing that a point release of the compiler would make such a huge difference but I have now built a copy of 3.0.2 on one of the boxes and it really does make a vast difference: Standard Computed Gotos Interpreted Compiled Interpreted Compiled A 3.35 33.56 4.63 (+38%) 29.83 (-11%) B 5.69 85.24 14.08 (+147%) 78.60 (-8%) C 15.09 314.91 31.83 (+111%) 259.34 (-18%) D 45.87 774.73 62.37 (+36%) 795.30 (+3%) E 45.89 747.37 142.57 (+210%) 776.41 (+4%) Machine A is a 90Mhz Pentium running RedHat 7.1 with gcc 2.96 Machine B is a Dual 200Mhz Pentium-Pro running RedHat 6.1 with egcs 1.1.2 Machine C is a 733Mhz Pentium III running FreeBSD 4.3-STABLE with gcc 2.95.3 Machine D is an 1333Mhz Athlon running RedHat 7.1 with gcc 2.96 Machine E is an 1333Mhz Athlon running RedHat 7.1 with gcc 3.0.2 The last two lines are for the same machine but with the different versions of the compiler. I haven't tried it on the other because it would take much longer to build gcc on those boxes than it does on the 1.3GHz Athlon ;-) Doubtless a similar effect would be seen though. Tom -- Tom Hughes ([EMAIL PROTECTED]) http://www.compton.nu