[m-dev.] TinyCC - May be worth investigating

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Feb 10 05:10:11 AEDT 2003


On 01-Feb-2003, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> I did get some timing data, but only on a very small file:
> samples/sort.m (120 lines).

For comparison, here are the figures for a larger file, library/tree234.m.

host	step		  compiler				time (s)
----    ----              --------                              -------
earth	Mercury->C	  mmc --grade hlc.gc -O2		3.65
earth	Mercury->C	  mmc --grade hlc.gc -O0		3.42

earth	C->object	  gcc -O2				5.53
earth	C->object	  gcc -O1				3.19
earth	C->object	  gcc -O0				2.65
earth	C->object	  lcc    				1.04
earth	C->object	  tcc    				0.34

earth	Mercury->object	  mcc -O2 & gcc -O2			9.98
earth	Mercury->object	  mcc -O2 & gcc -O1   			6.69
earth	Mercury->object	  mcc -O2 & gcc -O0   			6.29
earth	Mercury->object	  mcc -O2 & lcc    			4.69
earth	Mercury->object	  mcc -O2 & tcc    			3.99

earth	Mercury->object	  mcc -O0 & gcc -O2			9.35
earth	Mercury->object	  mcc -O0 & gcc -O0			6.25
earth	Mercury->object	  mcc -O0 & lcc    			5.18
earth	Mercury->object	  mcc -O0 & tcc    			3.81

So using tcc it takes a total of 3.81 seconds, as compared with 5.18 for
lcc and 9.35 for gcc -O2.  That's a 145% (factor of 2.45) speedup,
as opposed to only an 80% speedup with lcc.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list