Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 1996 16:12:07 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        msmith@atrad.adelaide.edu.au (Michael Smith)
Cc:        babkin@hq.icb.chel.su, msmith@atrad.adelaide.edu.au, luigi@iet.unipi.it, emulation@freebsd.org, nox@jelal.hb.north.de
Subject:   Re: New PC-Emu
Message-ID:  <199611061512.QAA08343@labinfo.iet.unipi.it>
In-Reply-To: <199611040903.TAA14791@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Nov 4, 96 07:33:11 pm

next in thread | previous in thread | raw e-mail | index | archive | help
A few speed tests on pcemu1.91

COMPILATION FLAGS:

Config. A:

OPTIONS = -DBOOT1_44 -DALIGNED_ACCESS -DBIGCASE -DINLINE_FUNCTIONS
CFLAGS  = -I$(XROOT)/include -O2 -pipe #-fomit-frame-pointer

Config B:
OPTIONS = -DBOOT1_44 
CFLAGS  = -I$(XROOT)/include -O

Runtime test #1:

	cl -c progmain.c (559 lines C source resulting in 7KB .obj file)

			Config. A	Config. B

Compile Time		1:02		0:27
Run time for test #1	0:40		0:37
stripped pcemu size	176128		114888

	Config B wins in all cases!

It appears that either the compile options or the flags do not do much
good! Actually, using INLINE_FUNCTIONS is probably harmful since some
functions are very large, and they get included several times.
Perhaps some benefit can be achieved by deciding which functions to
inline case-by-case.

For the debugging releases, perhaps it is better to limit
optimizations :)

	Luigi
====================================================================
Luigi Rizzo                     Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it       Universita' di Pisa
tel: +39-50-568533              via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522              http://www.iet.unipi.it/~luigi/
====================================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611061512.QAA08343>