bug-gawk
[Top][All Lists]
Advanced

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

Re: 32-bit profiling counts?


From: Andrew J. Schorr
Subject: Re: 32-bit profiling counts?
Date: Sat, 6 Jun 2020 14:09:10 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Jun 06, 2020 at 07:18:31PM +0200, Wolfgang Laun wrote:
> C99 (and GNU C) doesn't guarantee more than 32 bit for a long. You need long
> long for 64 bit.

I'm aware of that. That's why I asked what platform he's on. As I understand
it, Unix compilers typically use an LP64 data model on x86_64 architectures, so
on those platforms at least, a long should be 64 bits. I'd guess he's maybe
using a MinGW Windows version of gawk. 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, and we'd have to review
the impact of changing that type since the field is used for other purposes
in different contexts.

Regards,
Andy



reply via email to

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