This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Giving hints to the compiler/optimizer (#pragma hint ...)
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: um at mutluit dot com
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 22 Jun 2018 10:42:40 +0100
- Subject: Re: Giving hints to the compiler/optimizer (#pragma hint ...)
- References: <5B2C97EA.7050001@mutluit.com>
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)