alloca usage

Kevin Ryde user42 at zip.com.au
Fri Nov 21 09:50:54 CET 2003


Torbjorn Granlund <tg at swox.com> writes:
>
> Yes, that could be hidden in TMP_ALLOC, but since we need to
> free malloc'ed storage explicitly, I don't consider that an
> improvement.

The freeing would take place in TMP_FREE, when applicable, which
should mean no changes in the C files, just the way those macros do
their thing.

To keep code size down TMP_FREE could be just a test of one field in
the TMP_DECL structure, and call __gmp_tmp_reentrant_free or whatever
do the real work.


More information about the gmp-devel mailing list