in reply to Number size equal to one byte
Here's a schematic view of an integer in Perl:
SvIV xpviv
+--------+ +--------+
| Any +--+----->| (PVX) |
+--------+ +--------+
| RefCo | | (CUR) |
+--------+ +--------+
| Fl |T | | (LEN) |
+--------+ +--------+
| IVX |
+--------+
All fields are 32 bits wide. Note that there are other ways
integers can be stored in Perl, in might have been used as a
float or a string; then the size will increase. But the minimum
size is 28 bytes.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Number size equal to one byte
by blogan (Monk) on Jul 05, 2002 at 14:39 UTC | |
by Abigail-II (Bishop) on Jul 05, 2002 at 15:09 UTC | |
|
Re: Re: Number size equal to one byte
by Anonymous Monk on Jul 06, 2002 at 03:10 UTC |