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: gcc 3.2.1 optimizer degradation (strlen, -O2)


> gcc321 -O2
> strlen.c   20 sec
> strlen2.c  17 sec
> (library?) 14 sec  

The library version was compiled with gcc 2.8.1, which seems faster
than the 16 seconds below with 2.95; but in any case your modified
code seems faster.

> gcc295 -O2
> strlen.c   16 sec  (main.c was compiled without -O)
> strlen2.c  11 sec  (main.c was compiled without -O)
> (builtin)   8 sec

I'm not sure the accuracy of the numbers, but it appears:

2.8.1  14 seconds
2.9.5  16 seconds
3.2.1  20 seconds

A dump of the assembler for each of these would be interesting.


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