Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!uunet!mcsun!ukc!reading!minster!yorkohm!pete From: pete@ohm.york.ac.uk (-Pete French.) Newsgroups: comp.os.minix Subject: c68 optimization Message-ID: <1991Mar13.165327.3395@ohm.york.ac.uk> Date: 13 Mar 91 16:53:27 GMT Organization: Electronics Department, University of York, UK Lines: 25 I have just compiled c68 version II patchlevel 1 on one of our SUNs here in the department and was interested in comparing the speed of the code produced. To do this I grabbed a copy of the nearest benchmark program (dhrystone) and ran a few tests - using c68gas and then the gnu assembler/linker to produce a SUN executable. I then discovered an interesing fact... The code runs FASTER if it isnt optimised. Timings on this SUN are : c68 -opt -reg -short : 1562 ds/s c68 -noopt -short : 2173 ds/s c68 -opt -reg -noshort : 1315 ds/s c68 -noopt -noshort : 1851 ds/s The optimised code seems to run at about 71% of the speed of the unoptimised code ! This seems very perculiar to me - have I done something very stupid or is there something funny about the optimisation of the code - the optimised code does come out to be 80% of the size of the unoptimised so something is being done. any comments ? (I have yet to try it under MINIX) -- -Pete French. / "Two wrongs don't make a right, Adaptive Systems Engineering / - but three lefts do !"