gabriel.risterucci at univmed.fr
Wed Dec 22 20:30:32 CET 2010
You don't need to resize an array for it to be a VLA; as long as the
compiler can't tell the size of the array at build time (when the size
depend on a variable), it's a VLA.
Although they don't seem to be the source of your problem, you might run
into portability issue using them, amongst other things.
2010/12/22 Craig Helfgott <chelfgott at gmail.com>
> Actually, I don't have VLAs in my exp function. In that function I first
> figure out the initial value of LgNTerms, then declare my arrays to be
> length (that+2). I never resize my arrays, and that is the first time they
> are declared. But I'll try the constructor/destructor trick.
> On Wed, Dec 22, 2010 at 4:15 AM, Marc Glisse <marc.glisse at inria.fr> wrote:
> > On Tue, 21 Dec 2010, Craig Helfgott wrote:
> > Okay, checked up on VLAs. These are not VLAs.
> > But you definitely have VLAs in your exp function. However, that
> > be the reason for your trouble.
> > In gmpxx.h, make the mp*_class constructors and destructors print
> >>> something.
> > Still my best advice. Actually, running the program inside ltrace already
> > gives a useful output.
> > --
> > Marc Glisse
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
More information about the gmp-discuss