Read and respond to this message at:
gcc foo.c -o foo -Wl,-stack,8000000
For anything but toy programs you should indeed use malloc and the heap. The
stack was not designed for large data structures.
And I am quite sceptical that you will see anything remotely close to a quadratic
curve as you vary the matrix size. Modern CPUs are extremely complex and it
is nowhere near as simple as "is this data in the cache or not." Additionally
the optimizations that you enable in the compiler will also have a gigantic
effect on the speed of code that performs tasks like this.
But, that's just speculation.
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: