From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d85272edb20a830,start X-Google-Attributes: gid1164f8,public From: edlee@chinet.chinet.com (Edward Lee) Subject: Robert Harley's ECDLP-89 program Date: 1997/12/26 Message-ID: <6823ss$61h$1@chinet.chinet.com>#1/1 X-Deja-AN: 310460514 Organization: Chinet Newsgroups: comp.sys.dec If you are running or are considering running Robert Harley's ECDLP-89 program at full speed on your Alpha computer and are interested in milking the last bit of performance out of your computer, then you might consider using the -s compile switch to strip out the debugging information from the executable. The theory is that stripping out the debugging information will decrease the memory footprint of the ecdlp program and make it more likely that more of the ecdlp program will fit within the level 1 on-chip processor cache of the Alpha chip. Robert's example for compiling the ecdlp program is: gcc -O4 ecdlp-89.c -o ecdl -DFROM=somebody@somewhere Here is my suggested change: gcc -O4 -s ecdlp-89.c -o ecdl -DFROM=somebody@somewhere or gcc -O4 -s ecdlp-89.c -o ecdl -DBATCH -DFROM=somebody@somewhere if your Alpha computer is not directly connected to the Internet. I am using a 533Mhz 21164PC processor which has a 16KB direct-mapped L1 cache on-chip and am getting about 311,625 iterations per second. This is an increase of about 8,100 iterations per second with the -s switch, which works out to about 699,840,000 extra iterations per day for my computer alone. I notice that my computer is creeping past other individual's computers on the counter list. People who have Alpha processors with more than 16KB of L1 cache may not notice a difference. I sent an email message to Robert Harley suggesting that he change the references to puts("...") to printf("...\n") in the ecdlp-89.c program, since printf() is already necessary for the main output of the program and contains the functionality of puts(). Having both functions in the program unnecessarily increases the size of the executable and potentially slows the program down by pushing more speed-critical code out of L1 cache. I am running the ecdlp program with a command similar to the following: nice -n -20 ./ecdl >log.txt I periodically log in to a different session by pressing ALT F2, in order to execute mcopy to copy the log.txt file to a floppy disk, log out, and then press ALT F1 to go back to the number-crunching session. I have also executed renice to lower the priorities of other non-essential processes in the system. -Ed L If you are interested in joining the challenge, see: http://www.certicom.com/chal/contents.htm http://pauillac.inria.fr/~harley/ecdl2/ I had to get the ecdlp-89.c program from the mirror site that is mentioned in a ReadMe file at Robert's site.