large memory allocation problem
Hello Everybody;
I need to read data about 3 x 80 Mb into memory so that I can process it faster. What would be the best way to do this?
I tried reading it into array (3 different arrays, each with 80 Mb), then it does not even compile; kind of freezes when compiling. I also have tried it by allocating memory (malloc, 3 pointers pointing to 80 Mb data), does not work too. It compiles, but the results are wrong. It gives duplicated results.
Anybody has a clue what might be the problem?
The computer I am using has 512 Mb RAM, and it runs Ubuntu 10.04.