Giving hints to the compiler/optimizer (#pragma hint ...)

Jonathan Wakely
Fri Jun 22 09:42:00 GMT 2018

On Fri, 22 Jun 2018 at 07:32, U.Mutlu wrote:
> (The manual version has of course the disadvantage that user has to define an
> additional variable and because of that, put the code in its own scope...)

You don't have to change the scope:

for (size_t i = 1, vec_sz = vec.size(); i < vec_sz; ++i)

More information about the Gcc-help mailing list