[ECOS] TCP/IP checksum routine performance

Alex Schuilenburg alexs@redhat.com
Tue May 2 02:58:00 GMT 2000


Hi Grant

Some feedback from one of our compiler engineers on your performance issues:


:    assembly routine:   5.04 seconds
:    C routine w/ -O0:  10.62 seconds
:    C routine w/ -O1:  15.95 seconds
:    C routine w/ -O2:  15.95 seconds
:    C routine w/ -O3:  15.95 seconds

Note - did you check with -Os.  This may have produced better
results in this particular case.


: The really odd thing is that the code generated by gcc -O[123]
: is 50% slower than the code generated with -O0.  At first I
: thought there was something wrong with my test procedure, but
: when I looked at the assembly language gnerated with
: optimization on, it's indeed about 50% longer.

It sounds like loop unrolling is causing the code to exceed the
instruction cache size....

So compiling with '-O3 -fno-unroll-loops' might produce good
results.

Cheers
-- Alex




More information about the Ecos-discuss mailing list