Author: Tom Kerrigan
Date: 13:27:01 01/13/02
Go up one level in this thread
On January 13, 2002 at 10:22:52, Robert Hyatt wrote: >1. You know more about the program than the compiler. No bounds-checking >on "switch" type statements is necessary. What bounds checking or "switch type statements" are going on in a C program if you don't explicitly put them in? >2. you know whether a value can be positive, negative, or both. The >compiler can't. Why does this matter? Just deal with 32 bits (or whatever your word size is) and call it good. >3. you know whether a value can exceed (say) 127 or not. The compiler can't. Again, why does this matter? >4. You know how many registers the CPU has and can design code around that, >while C doesn't give you such control. You can change the C until it produces the assembly that you want. >5. you know exactly which registers procedure "x" will destroy, so you don't >have to save everything before calling it. If you are careful, you don't have >to save _anything_. The really strict calling conventions that you're thinking of here are no longer present in today's compilers. -Tom
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.