C (3/207)

From:Allan Odgaard
Date:01 Dec 99 at 05:41:25
Subject:Re: Optimizing (Was: Re: Getting desperate!)

From: Allan Odgaard <Duff@DIKU.DK>

On 01-Dec-99, Nuno Trancoso wrote:

> This doesn't mean that VBCC is in the midlle. If, as you say, you waste time
> flushing buffers on every printf() call, i would like to know the results for
> the modification you suggest. Anyone willing to do them, since i do not know
> how to?

Changing printf(...) to fprintf(stdout, ...) and running 999 cycles took:

VBCC: 5.96 seconds
StormC: 8.66 seconds

Redirecting output to 'NIL:' gave this:

VBCC: 0.38 seconds
StormC: 1.52 seconds

I feel tempted to rewrite HTMLview and the image decoder modules to plain C ;-)

> p.s. If i compile with +ppc, it get even slower. Is that because of context
> switches [...]

I'd think so...

Regards Allan



URL: http://www.DIKU.dk/students/duff/


System Error #12: Windows not found: (C)heer (P)arty (D)ance