bug-gmp
[Top][All Lists]
Advanced

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

Large factorials segfault : MingW32 v3.2.2 - Athlon XP 1700+


From: Igor Gnip
Subject: Large factorials segfault : MingW32 v3.2.2 - Athlon XP 1700+
Date: Fri, 6 Jun 2003 02:22:34 +0200

TEST Machine:

Athlon XP 1700+
1 GB RAM
Windows 2000 Professional with SP3


I've encountered that _all_  calls to mpz_fac()  above  150000!   Segfault

I know it's too big.  But it should not hang/seg-fault.

If it's stack size issue -  please help ?  I don't know how to set more
stack for my application.  And how much stack do I need for 150000!   ?

Theoretically,  if GMP library  starts to work,  I may even need to
calculate factorial of 
One million  (1000000!).  Hah :)
 
 
For example,  in my program,  I need to calculate  factorial  from number 
1861511  - I'm aware it will take very very long on any normal computer but
still -   I need it.

It hangs.
 
BTW.  Are there any memory/size limitations for the mpz_fac() ?

Is it possible to compile GMP for Borland c++ builder 6.0 ?


Does C++ wrapper library use more stack size than plain C implementation ?


Thank you,
Igor Gnip.
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]