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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ae395e5c11de7bc9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!q23g2000yqd.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: segfault with large-ish array with GNAT Date: Thu, 18 Mar 2010 13:38:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6b9abbbd-2d5e-4e80-b353-fc4d1ccd2963@q23g2000yqd.googlegroups.com> References: <642ddf8b-1d45-4f74-83ad-2c755040ca33@k24g2000pro.googlegroups.com> <4ba13454$0$6720$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 62.202.78.83 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1268944722 26097 127.0.0.1 (18 Mar 2010 20:38:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 Mar 2010 20:38:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q23g2000yqd.googlegroups.com; posting-host=62.202.78.83; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9657 Date: 2010-03-18T13:38:41-07:00 List-Id: On 18 Mar, 18:03, Warren wrote: > With the new focus on parallel cores etc., I've often pondered > what a future CPU without a stack might look like. Imagine > a CPU that somehow in microcode was able to do a fast-malloc > of a stack frame There is no need to do that in microcode - the compiler decides what does it mean to call a subprogram and what does it mean to allocate the "frame", so you might simply have a compiler that implements these concepts in terms of a dynamically allocated linked list. I vaguely remember reading about a C compiler that did exactly that a while ago - but I fail to find it in Google due to the noise from billions of tutorials with stacks and lists. :-) Today you might find this idea implemented in just about any *interpreter*. -- Maciej Sobczak * www.inspirel.com YAMI4 - Messaging Solution for Distributed Systems http://www.inspirel.com/yami4/