Original Post
Not a question. Just a little tip I thought I''d share.
Using MSVC (pro or ent editions):
You can selectively switch on/off the assume-no-pointer-aliasing to help the compiler during its optimization of loops and register allocations to get faster code:
...of course you can tell the compiler to assume no pointer aliasing for your entire project by issuing /Oa or /Ow. HOWEVER you''d better be damn sure there really ARE no aliased pointers in your project or you''re in for some fun debugging!!
Hope this helps squeeze a few ms off your inner loops ;-)
Karen
#pragma optimize( "a", on )
void gloop()
{
// Use those non aliased pointers
}
#pragma optimize( "a", off )
|