Ranges longer than size_t.max

Dmitry Olshansky dmitry.olsh at gmail.com
Sun Dec 30 11:11:46 PST 2012


12/30/2012 10:23 PM, SomeDude пишет:
> On Saturday, 29 December 2012 at 06:12:52 UTC, Mehrdad wrote:
>> Uhm, 64-bit?
>>
>> What about large files (> 4 GiB) on 32-bit systems?
>>
>> (Say, if a range wants to provide random access to the bytes of an 8
>> GiB file?)
>>
>> And what about large bit vectors? A 600 MiB bit vector needs > 2^32
>> bits for length...
>
> AFAIK, no 32-bit OS supports files larger than 4Gb anyway.

False. It's solely a question of FS used.
NTFS supports files larger then 4 Gb regardless of version Windows 
(Win2K+ or even earlier). It doesn't matter what the bitness of OS in 
question is. I suspect 32bit linux also has > 4Gb files even with ext2 
no problem.

And e.g. FAT32 remarkably can't handle 4 Gb+ files with any OS.
-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list