[squeak-dev] filesize reporting 0 for very large files
Bert Freudenberg
bert at freudenbergs.de
Sun Mar 18 16:32:00 UTC 2012
On 18.03.2012, at 17:10, Chris Muller wrote:
> Does a 32-bit VM mean that no individual primitives can have an
> argument or return value greater than 32 bits?
No. It just means that any OOP is 32 bits wide. The file size primitive returns a LargeInteger instance, but its OOP will be a 32 bit pointer.
> File-size is something
> that, in 2012 with HD video recording devices, can very easily exceed
> 32-bits so it would seem to be overkill for ALL objects to have to be
> larger than 32 bits (as in a 64-bit VM) just for this one primitive..
As Andreas wrote, it works fine on Windows in a 32 bit VM. The problem must be in your platform's support code.
- Bert -
More information about the Squeak-dev
mailing list
|