Mail Archives: djgpp/1998/09/29/10:15:19
Doug Gale wrote:
> What are you making that requires such extreme performance that you are willing
> to sift through the assembler and make sure it sqeezes every drop of speed from
> the machine? If your application is SO performance sensitive, why target it for
> a junky old 486 with no L2 cache? :)
The "junky old 486 with no L2 cache" is the hand held computer that
my employer manufatures. It is (very well) designed for ruggedness
and long battery life, not for CPU power. By writing the frequently
used routines in assembler, I achieve very good performance. In this
project I needed to have a set routines in portable C for running the
same routines on other platforms. For maintenance reasons I wanted
to have just one version of the source code without a lot of conditional
compilation. After trying it that way, I gave up on the idea of single
source code and switched back to writing the 486 version in assembler.
> Besides, algorithmic optimizations will always make a bigger improvement than
> low-level optimizations anyway. As the old saying goes: the fastest instruction
> is the one you never execute!
I think I got the algorithm optimized before I started worrying about
the low-level optimizations.
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -