Bill Allombert on Sun, 03 Mar 2019 12:45:02 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PARI’s ABI


On Thu, Feb 28, 2019 at 03:41:57AM -0800, Ilya Zakharevich wrote:
> Allocation/deallocation on the PARI stack is extremely cheap.
> Allocation/deallocation on the C heap is much more expensive.
> Allocation/deallocation on the PARI heap is yet slightly more expensive.
> 
>   Should there be a macro to allocate arbitrary data on PARI stack???
>   (Without tricks like allocating a t_INT!)

Yes, it is called stack_malloc

Cheers
Bill