Re: Memory Question
- From: "user923005" <dcorbit@xxxxxxxxx>
- Date: 28 Mar 2007 14:56:19 -0700
On Mar 28, 1:38 pm, Kenneth Brody <kenbr...@xxxxxxxxxxx> wrote:
SM Ryan wrote:
"Clement" <jeba.r...@xxxxxxxxx> wrote:
# i want to create a binary tree[size of 1GB] so i want to place it in
# Disk instead of memeory.. and i need to access through pointers.. can i
Use a memory mapped file. You can use pointer operations on the file
contents. Whether a file page is actually on disk or in memory becomes
the operating system concerns.
Note that memory-mapped files are beyond the scope of Standard C.
They are also system-specific, and not all systems support them.
If you do go that route, I would suggest at least putting wrappers
around the system-specific functions to allow easier porting to
other systems which support memory-mapped files differently.
Or find a toolkit that already does this.
I use ACE, but that is C++.
I seem to remember seeing similar things for C.
.
- References:
- Re: Memory Question
- From: Clement
- Re: Memory Question
- From: SM Ryan
- Re: Memory Question
- From: Kenneth Brody
- Re: Memory Question
- Prev by Date: Re: How to pass a struct to a function
- Next by Date: Re: Learning C?
- Previous by thread: Re: Memory Question
- Next by thread: Re: Memory Question
- Index(es):
Relevant Pages
|