C (4/207)

From:Allan Odgaard
Date:01 Dec 99 at 05:45:18
Subject:Re: Optimizing (was : Re: getting desperate!)

From: Allan Odgaard <Duff@DIKU.DK>

On 30-Nov-99, Nuno Trancoso wrote:

> [...] so i guess that 060 code (more specific and optimized for the target
> processor) should be faster than 68000 heneric code.

Well, atleast a 68020 compared with a 68060 executable isn't much different,
and mostly you can't feel it either, so people who distribute 020, 030, 040 &
060 versions of their programs are only wasting bandwidth... ;-)

> Most of the time i don't clear the array, because usually i set it up with
> values shortly after program start. So, it really doesn't mind if the values
> are random or if the memspace is cleared, most of the time.

It was just an example of when the linker lib is used. It's also used for
rand(), which you use in your program, so here you would probably also get a
speedup by using StormAmiga.lib in favor of Storm.lib (assuming that the
algorithm used is the same) - but only if you call it a lot...

Regards Allan



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


Diz Microsoft spelcheker is 100% bug fri.