in reply to Re^4: file truncate not working on 128GB file in Windows
in thread file truncate not working on 128GB file in Windows

$Config{ivsize} refers to the size of an IV, the Integer Value slot of the SV, the Scalar Value (everything that starts with $ in Perl).

ivsize and ptrsize can in theory deviate, on a 64-bit processor with a 32-bit system, you could still have ivsize=8 and ptrsize=4.

To learn about how Perl stores the different values, see Perlguts Illustrated.

This is also on CPAN, but CPAN refuses to find the distribution, most likely because the distribution does not contain distribution metadata...

Replies are listed 'Best First'.
Re^6: file truncate not working on 128GB file in Windows
by NERDVANA (Priest) on Feb 14, 2024 at 04:04 UTC
    And even on a 32-bit processor with 32-bit x86 instructions, you can still have a 64-bit IV because the C language has a 'long long' or 'uint64_t' that perl can use. They aren't efficient, but they're used anywhere you want to do 64-bit file offsets in 32-bit land.