If I want to use large array say mpz_t A, I got "Segmentation fault (core dumped)" during my compilation. Is there any easier way to solve this?
tpg2114's comment is spot on. Try:
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.: