Stack allocation

Niels Möller nisse at lysator.liu.se
Mon Jun 9 11:39:14 UTC 2014


tg at gmplib.org (Torbjörn Granlund) writes:

> nisse at lysator.liu.se (Niels Möller) writes:
>
>   Would it make sense to lower the limit further to, say, 128 limbs?
>
> Who knows.  I played with that, but it does not decrease stack usage as
> much as one might expect (only 20% as measured by the test suite).

I see.

>   Nice! That seems very reasonable on current desktop and server machines,
>   but it might still be a bit large if people use gmp on embedded systems.
>   
> Perhaps alloca is not useful there?

What stack usage do you get if you disable use of stack allocation?

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list