locked
How to allocate a large Continuous memory in VS2008 ? RRS feed

  • Question

  • For example, I have a 64-bit OS and now want to alloc a continuous memory of 1TB !!

    What should i do?

    #define N 1024
    struct block{
     float m[N][N];
    };

    float* p = new block[N];

    there's a compile warning:
    warning C4307: '*' : integral constant overflow

    Can anyone give me a suggestion ? Thank you!!
    Tuesday, November 24, 2009 4:40 AM