flat assembler
Message board for the users of flat assembler.

Index > Linux > working with large files

Author
Thread Post new topic Reply to topic
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks
What is the best way? To open them in block e.g. 64KB or more or less if this file is 4GB. Is this possible this with C functions like read, write, seek, etc.?

Thanks
Post 11 Jan 2007, 14:23
View user's profile Send private message ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3170
Location: Denmark
f0dder
Depends on what you do - but unless you're going to write for 64bit linux only, you do need to process the file in "chunks" - you can't mmap such large files on 32bit systems.

Iirc you need to use 64bit-size extensions to the standard read/write/seek functions (ie., not plain ansi or posix, but should be available on most systems) - notice that the 64bit here is size support, it's still available on 32bit systems.
Post 11 Jan 2007, 16:44
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.