I want new a array,such as
double *dou=new double[600*600*900]
but in the case of "WIN32",vs compliler likely could't support new a array exceed 2G
if I want to new the array above, how to do?
zhuimeng 0
Newbie Poster
Recommended Answers
Jump to PostPrimarily it depends on you operating system. On 32 bit windows there are "only" 2G bytes per process. So your max. array size would be a little less that 2GB. Also visual c++ 2005 is a 32 bit system. You may also consider that a double needs 8 bytes thus …
Jump to PostWorking with such a big array is going to be very slow and troublesome. Even if you make it work on your computer, will it work on another?
I would suggest you think about the algorithm you have which uses this array and see if it is not possible …
Jump to PostMemory in a computer is always organized in a pyramidal way. That is, the processor can only operate on a few variables at a time (on the register, very small memory capacity at no clock-cycle away from the processor). A program can only run a small part at a time …
All 11 Replies
tesuji 135
Master Poster
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
zhuimeng 0
Newbie Poster
zhuimeng 0
Newbie Poster
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
zhuimeng 0
Newbie Poster
Ancient Dragon 5,243
Achieved Level 70 Team Colleague Featured Poster
zhuimeng 0
Newbie Poster
mitrmkar 1,056
Posting Virtuoso
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
Ancient Dragon
commented:
Nice :) +33
zhuimeng 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.