This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: void pointer and map (fwd)


Anitha Boyapati writes:
 > 
 > I have one more question : Now that my code is heavily loaded with 
 > reinterpret_cast, does this have a performance problem ? In short, 
 > does exhaustive usage of reinterpret_cast hinder performance ? 

It certainly won't help.  Because the pointer can point to anything
the compiler isn't able to do any alias analysis that will help
performance.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]