Re: Fw: Bumping PHP to support 8byte integers
| From: | Jeroen van Wolffelaar | Date: | Sun, 23 Sep 2001 20:53:57 +0000 |
| Subject: | Re: Fw: Bumping PHP to support 8byte integers | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66426@lists.php.net to get a copy of this message | ||
> I would be very worried about making numbers 8 bytes by default, unless
> the CPU supports them natively. There are a lot of consequenses involved
> with something like that.
>
> Assuming a 32 bit register system (x86) integers will no longer fit in
> registers. This changes EVERYTHING, from passing them to functions, to how
> arithatic is performed. Nor am I sure what the state of compilers are in
> all PHP's supported environments, do the compilers handle "long long?"
These are problems indeed, it is just an idea, I don't know what the
performance impacts are. Unfortunately it's quite a work to change it,
otherwise it's a question of trying it and see what the impact is on typical
scripts.
For compilers possibly not supporting "long long", it's about wether they
support 64bit integers. Does someone know how the support of 64bit integers
is in compiler-land?
--Jeroen