user stack support for TMP_ALLOC

Torbjorn Granlund tege at
Thu Oct 7 17:57:39 CEST 2004

Bill Allombert <allomber at> writes:

  The only issue we have with this multiprecision kernel is the alloca stack
  overflow problem.
We are changning the use of alloca for GMP 5.  It will never allocate large
chunks on the stack.  That change should make the stack usage very small.
  I have written a patch [snip]

I am unfortunately rejecting your patch.  Some usages of alloca in GMP are
too critical for going through a mechanism such as the one you are


More information about the gmp-devel mailing list