[BusyBox] awk patch

Glenn McGrath bug1 at optushome.com.au
Thu Oct 30 13:44:41 UTC 2003


On Wed, 29 Oct 2003 20:11:32 +0200
Dmitry Zakharov <dmit at crp.bank.gov.ua> wrote:

> Hi,
> 
> here is a patch to awk applet that fixes two bugs:
> - END block didn't execute after an exit() call
> - huge memory consumption and performance degradation on large input
> (now performance is comparable to gawk)

Applied

> I'm still in doubt about the bug reported by Dave Updegraff (with
> double to int conversion when cross-compiling from Solaris to
> soft-float ppc405). I think, in this case simple casting is enough and
> should work properly. Otherwise it would always require libm.so and
> make applet code very painful (there are tens of conversions).  Is
> this way right?

I think its good to avoid extra libraries if we can.

I havent needed to cast from double to int myself, googling finds this
link, which implies casting is enough.

http://lists.trolltech.com/qt-interest/2002-03/msg00049.html

Perhaps its an architecutre specifc compiler bug ?



Glenn



More information about the busybox mailing list