From: tmoran@acm.org
Subject: Re: Thick bindings to a C library and gnattest: suggestions?
Date: Tue, 2 Jul 2013 05:04:45 +0000 (UTC)
Date: 2013-07-02T05:04:45+00:00 [thread overview]
Message-ID: <kqtn1d$2ua$1@speranza.aioe.org> (raw)
In-Reply-To: kqtkmq$c0a$1@loke.gir.dk
> > (Aside: in a world in which GB of RAM are common, it seems odd for a
> > language to require explicit heap allocation, and the associated memory
> > management, for objects that fit in memory, but not in the stack. Surely
> > it would be better for the language to allow the developer to simply
> > declare the object, and for the compiler to decide where it will fit, and
> > allocate it and manage its memory appropriately. A means to disable
> > automatic heap allocation would be needed for systems that disallow heap
> > allocation.)
>
> Amen! I've been saying that for 30+ years; perhaps someday it will really be
> true in commonly used compilers.
>
> Randy.
I notice that when I tried the OP's declare with the Janus Ada compiler
it ran for up to a little over 800MB for the array, then above that it
said:
** Unhandled STORAGE_ERROR
Heap Overflow
On Line Number 16 In TRYBIG.DOIT
Called from line number 27 In TRYBIG
suggesting that the compiler was
> > decide where it will fit, and
> > allocate it and manage its memory appropriately.
next prev parent reply other threads:[~2013-07-02 5:04 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 9:02 Thick bindings to a C library and gnattest: suggestions? ziotom78
2013-07-01 9:45 ` Dmitry A. Kazakov
2013-07-01 11:11 ` Maurizio Tomasi
2013-07-01 11:41 ` Simon Wright
2013-07-01 12:00 ` Maurizio Tomasi
2013-07-01 12:42 ` Dmitry A. Kazakov
2013-07-01 19:07 ` Simon Wright
2013-07-01 12:32 ` Dmitry A. Kazakov
2013-07-01 12:41 ` Maurizio Tomasi
2013-07-01 12:47 ` Simon Wright
2013-07-02 8:55 ` Georg Bauhaus
2013-07-02 8:33 ` Maurizio Tomasi
2013-07-02 8:58 ` Dmitry A. Kazakov
2013-07-02 16:58 ` Robert A Duff
2013-07-02 17:00 ` Jeffrey Carter
2013-07-01 17:16 ` Jeffrey Carter
2013-07-02 4:24 ` Randy Brukardt
2013-07-02 4:37 ` Shark8
2013-07-02 5:04 ` tmoran [this message]
2013-07-02 22:27 ` Randy Brukardt
2013-07-03 12:02 ` Jacob Sparre Andersen
2013-07-02 3:16 ` Jerry
2013-07-02 4:02 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox