comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: Thick bindings to a C library and gnattest: suggestions?
Date: Wed, 03 Jul 2013 14:02:53 +0200
Date: 2013-07-03T14:02:53+02:00	[thread overview]
Message-ID: <8738rvonpu.fsf@adaheads.sparre-andersen.dk> (raw)
In-Reply-To: kqsd6d$1ik$2@dont-email.me

Jeffrey Carter wrote:

> (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.)

I like to set the stack size for my (non-embedded) systems to an
indecently large value (1, 2 or 4 Gb) as it only is virtual memory I use
that way anyway.

But yes, it would be nice, if the compiler would do the worrying about
which objects to allocate where.

Greetings,

Jacob
-- 
"No!  The universe is ours."

  parent reply	other threads:[~2013-07-03 12:02 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
2013-07-02 22:27       ` Randy Brukardt
2013-07-03 12:02   ` Jacob Sparre Andersen [this message]
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