Re: Faster depend written in Perl

Alan Cox (msmith@quix.robins.af.mil)
Fri, 26 Jul 1996 09:31:15 -0400 (EDT)


> I have an old 386/33 and running 'make depend' takes a long time. I
> heard this was because gawk uses floating point instead of integer
> arithmetic. To speed things up, I translated the depend.awk script
> into Perl using the a2p program. I edited the result to clean up the
> code. The resulting script runs much faster (up to an order of
> magnitude on my machine without a coprocessor) either because of
> integer arithmetic or Perl's faster I/O.

I assume this patch is for machines with no math unit only,
because on a machines with coprocessor, floating point arithmetic
runs faster than integer.

Melvin