Author: Dann Corbit
Date: 13:41:12 09/25/01
Go up one level in this thread
On September 25, 2001 at 16:34:18, Peter Fendrich wrote: >I've never cared about optimizing at or near hw level but maybe I at least >should think about it... > >What's all this about the cashline? >What is put in the cash when *p = *q; >The pointers (both?) or the data they point at? >or when *p == *q; The same as above? >or when p[x] = p[y]; Is x and y put there? > >Will it give any significant savings to care about these things? When two pointers point to the same thing, that is aliasing, and it causes big problems. It means (for instance) that you have to turn certain optimizations off. With C99, you can promise not to do that with a pointer using the keyword restrict, but not many compilers know about that. At any rate, having two different pointers point to the same object should be avoided if possible.
This page took 0 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.