This is the mail archive of the gcc@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: g++ doesn't unroll a loop it should unroll


Le jeudi 14 décembre 2006 08:58, Steven Bosscher a écrit?:
> On 12/14/06, Benoît Jacob <jacob@math.jussieu.fr> wrote:
> > I don't understand why you say that. At the language specification level,
> > templates come with no inherent speed overhead. All of the template stuff
> > is unfolded at compile time, none of it remains visible in the binary, so
> > it shouldn't make the binary slower.
>
> You're confusing theory and practice...

We're getting offtopic here, the example program I sent in my first mail 
didn't have any templates, so the gcc bug we're talking about has nothing to 
do with templates. The same bug would appear in any C or C++ program having 
nested loops and expecting them to get completely unrolled.

Benoit

Attachment: pgp00000.pgp
Description: PGP signature


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