Re: OT/drift: when is a RAMdisk an appropriate solution
- From: "Thomas J. Gritzan" <Phygon_ANTISPAM@xxxxxx>
- Date: Wed, 30 Aug 2006 00:18:26 +0200
Tom schrieb:
I have revisited creating a very large array for holding raw data
which is used in an iterative optimization algorithm. The purpose of
the large array is to eliminate the slow hard disk reads and increase
program throughput. On an older machine (Win2000, Visual C++ 6.0, 256
M ram) when I compile with a huge array I get the following warning:
=====================================================================
warning LNK4084: total image size 343744512 exceeds max (268435456);
image may not run
=====================================================================
Thats a linker error. What did you do to the linker?
Just don't use a filescope array, try to malloc() a block of memory, or if
malloc() can't handle that large blocks, allocate multiple chunks of
smaller memory blocks.
You really don't need a ramdisk.
--
Thomas
.
- Follow-Ups:
- References:
- How can I create a Ram Disk within C/C++ program?
- From: Tom
- Re: How can I create a Ram Disk within C/C++ program?
- From: Tom
- Re: How can I create a Ram Disk within C/C++ program?
- From: Flash Gordon
- Re: How can I create a Ram Disk within C/C++ program?
- From: jmcgill
- OT/drift: when is a RAMdisk an appropriate solution
- From: Chris Torek
- Re: OT/drift: when is a RAMdisk an appropriate solution
- From: Tom
- How can I create a Ram Disk within C/C++ program?
- Prev by Date: Re: is the C library a wrapper for windows API?
- Next by Date: Re: Am I being Stupid?!
- Previous by thread: Re: OT/drift: when is a RAMdisk an appropriate solution
- Next by thread: Re: OT/drift: when is a RAMdisk an appropriate solution
- Index(es):
Relevant Pages
|