Re: 64 bit string offsets

From: Date: Fri, 29 Aug 2014 17:41:08 +0000
Subject: Re: 64 bit string offsets
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-76958@lists.php.net to get a copy of this message
On 29 Aug 2014, at 17:39, Anatol Belski <anatol.php@belski.net> wrote: > On Fri, August 29, 2014 17:54, Andrea Faulds wrote: > >> I’d just leave things as they are… though I suppose there might be some >> benefit to switching to size_t for string offsets. Does that avoid a cast >> in the generated assembly? > My point is just that it should be consistent as we have it, in less or or > prefferably more plausible way. Though i didn't quite understand the > question about the compiled assembly - you mean whether it'll be binary > compatible with the previous bins? then no. If I recall correctly, one of the reasons to use size_t for string lengths was avoid casts in the generated machine code. That’s what I was referring to: on 64-bit platforms, you’d need to do a 32-bit to 64-bit cast. -- Andrea Faulds http://ajf.me/

« previous php.internals (#76958) next »