From owner-freebsd-emulation Wed Nov 6 07:53:47 1996 Return-Path: owner-emulation Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA27134 for emulation-outgoing; Wed, 6 Nov 1996 07:53:47 -0800 (PST) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA27105 for ; Wed, 6 Nov 1996 07:52:43 -0800 (PST) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id QAA08343; Wed, 6 Nov 1996 16:12:08 +0100 From: Luigi Rizzo Message-Id: <199611061512.QAA08343@labinfo.iet.unipi.it> Subject: Re: New PC-Emu To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Wed, 6 Nov 1996 16:12:07 +0100 (MET) Cc: babkin@hq.icb.chel.su, msmith@atrad.adelaide.edu.au, luigi@iet.unipi.it, emulation@freebsd.org, nox@jelal.hb.north.de In-Reply-To: <199611040903.TAA14791@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Nov 4, 96 07:33:11 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-emulation@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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/ ====================================================================