HS>Borland compilers fail to perform such an optimization.
CB>Even Turbo C++ 3.0 will do it! And that's Borlands _LOW_ end compiler.
CB>And TC30 that's, what, 5 years old. Older TC's, such as TC1.0 might
CB>not. But not many people have it anymore.
That's strange, TC 3.1 will not perform that optimization.
CB>If you don't have a compiler that will do something as simple as
CB>strength reduction, constant folding, etc., then pick up a copy of the
CB>free DJGPP. Judging from the tests you post, it does give quite a bit
CB>better results than what ever compiler you are using.
Well, if you actually bothered to read the message topic you would notice
'DJGPP'. I do use DJGPP, and I hardly think results from a RISC based machine
compared to a 486 dx2/66 (the test machine I'm using) are hardly valid
results.
I know all this optmization stuff is hard for you, but if you try to
understand you will notice that hand-optmizations can sometimes increase
performance by 20 times. (read the message I wrote to Jerry).
... Help! I can't find the "ANY" key.
--- Ezycom V1.48g0 01fd016b
---------------
* Origin: Fox's Lair BBS Bris Aus +61-7-38033908 V34+ Node 2 (3:640/238)
|