Re: Array size problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Justinas wrote:

Hi there!

Probably it is unavaiable such a big continous memory area, try to solve this with aray with pointers to smaller areas. Could you mail me a source code, i'll try this on WinXP box(i have one @ work).



#include <stdio.h>

int main() {
    float a[7000000];
    printf("DONE\n");
}

If you request a sufficiently large block of memory you should get the runtime popup reporting the "unknown software exception". On linux you'll get a "segmentation fault".

Cheers,
Rob


--
Any emails containing attachments will be deleted from my ISP's mail server before I even get to see them. If you wish to email me an attachment, please provide advance warning so that I can make the necessary arrangements.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux