bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 32-bit profiling counts?


From: arnold
Subject: Re: 32-bit profiling counts?
Date: Sun, 07 Jun 2020 00:18:44 -0600
User-agent: Heirloom mailx 12.5 7/5/10

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> One could certainly hardwire a 64-bit type in that field, but I can't find
> any instances of that in the gawk codebase, for reasons not obvious to me,

The code predates my switch to 64-bit versions of Linux as the
development platform.

> and we'd have to review the impact of changing that type since the field
> is used for other purposes in different contexts.

Yes, exactly.  Also the possible increase in the size of the NODE
struct.

I suspect that moving to an unsigned type would break things,
but that moving to 64 bit long would cause less breakage. We'd
still have to check if the values gets printed with the right
format in all the right places.

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]