Author: Dieter Buerssner
Date: 12:05:39 09/26/02
Go up one level in this thread
On September 25, 2002 at 16:51:17, Dann Corbit wrote: >Here is what my compiler spit out (I could probably choose better flags too): When I look at the generated code, it seems, you couldn't choose better flags. To me, it looks essentially identical to the hand written assembly. The few differences (slightly other order of things, add eax, 1 instead of inc eax) I cannot judge. With my assembler knowledge mainly from 386 days and before, I would even trust the compiler more here, than myself writing this in assembler (I would come up with practically identical code as well). I could imagine, that the compiler knows something about pairing of the instructions, which I don't. He could also know better, about which labels should be aligned (perhaps dependent on specific processor switches). He can know easily, how many bytes each instruction needs. Perhaps using add eax, 1 makes a better alignment in the end, than the shorter inc eax. Gcc also produced practically the same code. Regards, Dieter
This page took 0.01 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.