Custom stack allocation for GMP arrays

Blake Huff stangmechanic@gmail.com
Thu Dec 1 22:47:00 GMT 2005


Hi all:

I'm working with large arrays from the GMP library on MacOS 10.4.2,  
with XCode 2.2, gcc 4.0.0, and I need to increase the stack size  
beyond the default 8 megabytes.  Apple suggests using a "-stack-size"  
linker flag, but this flag doesn't appear in the GCC manual (and  
doesn't work).   I've tried the flag -fno-stack-limit, but this  
doesn't seem to to work either.

One obvious work-around is to configure the GMP library to use  
malloc, but I'd rather get a larger stack if possible (speed and ease  
reasons).

Suggestions about increasing the stack size or other techniques for  
accommodating large GMP mpz_t array?  Thanks!


Blake Huff
stangmechanic@gmail.com





More information about the Gcc-help mailing list