[RC5] Linux OGR code not optimized?

Chase Covello chasec at pacbell.net
Sat Sep 23 13:14:06 EDT 2000


On Wed, 20 Sep 2000 06:30:41 "Pyke, David" wrote:
> Jeff Lawson [jlawson at bovine.net] said:
> 
> Could we find out what flags you use with gcc?  Maybe we could suggest
> alternates.  I hate to see the Win32 platform be better at anything than
> unix. ;)
> 
> --
> To unsubscribe, send 'unsubscribe rc5' to majordomo at lists.distributed.net
> rc5-digest subscribers replace rc5 with rc5-digest
> 

I just downloaded the source, and the Makefile says:

CCFLAGS = -DBUILDNAME=${BUILDNAME} -O2 -fstrict-aliasing -fno-exceptions
-fomit-frame-pointer -Wall -Wtraditional -Wpointer-arith -Wcast-align 	 
-Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes 	  -Wconversion
-Winline -Waggregate-return -Wcast-qual 	  -Woverloaded-virtual
-Wnested-externs -mcpu=pentiumpro -malign-functions=5 -malign-loops=4 -DASM_X86
-DMMX_RC5 -D__showids__ 			-DMULTITHREAD -DLURK -DSMC
-DHAVE_OGR_CORES                         -DUNIVERSALRESOLVER -I./common -I./rc5 -I./des
-I./ogr -I./csc

I compiled the test client and tested it.
My OGR rate is:
[Sep 23 19:10:01 UTC] Benchmark for OGR core #0 (GARSP 5.13)
                      0.00:00:16.09 [4,905,396.20 nodes/sec]

[This is version 2.8008-459-CTR-00050300 for Linux (Linux 2.4.0-test8)]

The official client says:
[Sep 23 18:53:59 UTC] Benchmark for OGR core #0 (GARSP 5.13)
                      0.00:00:16.07 [4,322,121.09 nodes/sec]

[Version 2.8010-463-CTR-00071321 for Linux (Linux 2.4.0-test8)]

This tells me either:
1. The old code is faster, or
2. I'm using a different gcc (mine is 2.95.3)

(BTW, I experimented with different levels of optimization, and they are slower
than -O2)

-- 
The paranoids are out to get us ALL!

Chase Covello
chasec at pacbell.net
http://covello.ath.cx/

--
To unsubscribe, send 'unsubscribe rc5' to majordomo at lists.distributed.net
rc5-digest subscribers replace rc5 with rc5-digest



More information about the rc5 mailing list