This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Custom stack allocation for GMP arrays


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]