Alain SMEJKAL on Sat, 06 Dec 2008 02:16:04 +0100

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

gp2c malloc trouble

Dear list,

I have some trouble to add my own malloc'ed data into a gp2c source. When
running with GP, I have to extend the stack many more than logically
4 Mb stack enable only to malloc 43 Kb, 8Mb -> 97 Kb
What's wrong ?



PS : configuration is Cygwin with pari-2.4.0.alpha and gp2c-0.0.5pl6

Sample of  the malloc code :

unsigned char    *bits;
if ((bits = malloc(bitsize)) == NULL)
    pari_err(talker, "invalid size parameter");