I hope some one can help me, i\'m trying to create an int[400000000] (400 millions) array on my application using visual c++ 2010 but it generates an overflow error The same cod
Does the whole array really needs to be allocated ? do you really use the whole array ? Is it an array with lots of 0 ? if it is the case, then the fact that it works better on linux can be explained.
In that case using a sparse array might be more appropriate. Using an existing sparse array implementation would reduce the memory footprint and maybe allow faster computation.