by Lord Crc » Sun Aug 08, 2010 10:32 pm
I wrote quite a lot of asm code for the 486 and pentium. Some years ago I wanted to optimize a graphics routine and wrote some 300 lines of careful assembly code by all the rules I knew, even having read the intel optimization guide to get the latest tricks.
The result was 10% slower than what the Delphi compiler produced...
So yeah, as jeanphi said, it's very difficult to write significantly better asm code than what the modern compilers can produce. Especially if you have learned your compiler and know how to write "optimizable" code, which I had with the Delphi compiler.
May contain traces of nuts.