C was always just a "high level" assembler. Eventually you have the techniques in your mental toolbox to nudge your compiler in the right direction. Unless you read the K&R deeply you might not even know there is "volatile" and "register" keyword. Then with poking your compiler do you get to find out what it does when you write code with those modifiers.
As a tutorial on how to go about optimizing code youits good, as a practical matter there wasn't much need to tweak this piece of code for a production system. IMHO. Opinions will vary. I always worked in shops where the schedule was always shrinking and deadlines loomed ever closer - optimizing only where it was absolutely needed.
As a tutorial on how to go about optimizing code youits good, as a practical matter there wasn't much need to tweak this piece of code for a production system. IMHO. Opinions will vary. I always worked in shops where the schedule was always shrinking and deadlines loomed ever closer - optimizing only where it was absolutely needed.