From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!news.stack.nl!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Thick bindings to a C library and gnattest: suggestions? Date: Wed, 03 Jul 2013 14:02:53 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <8738rvonpu.fsf@adaheads.sparre-andersen.dk> References: NNTP-Posting-Host: 94.191.233.142.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1372852974 5262 94.191.233.142 (3 Jul 2013 12:02:54 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Wed, 3 Jul 2013 12:02:54 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:XjZS/FbW16bojxA8dIZ7rUrxQHM= Xref: news.eternal-september.org comp.lang.ada:16079 Date: 2013-07-03T14:02:53+02:00 List-Id: 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."