If I want to use large array say mpz_t A[100000], I got "Segmentation fault (core dumped)" during my compilation. Is there any easier way to solve this?
Tell me more
×
Computational Science Stack Exchange is a question and answer site for
scientists using computers to solve scientific problems. It's 100% free, no registration required.
|
|
tpg2114's comment is spot on. Try:
If the If you're interested in using a static array on the stack, then you can try increasing the stack limit size in Linux with the |
|||||||||||||
|
|
You might also consider using Here's a random example:
Compiled with e.g.:
|
|||
|
|