comp.lang.ada
 help / color / mirror / Atom feed
From: Warren <ve3wwg@gmail.com>
Subject: Re: segfault with large-ish array with GNAT
Date: Fri, 19 Mar 2010 13:20:19 +0000 (UTC)
Date: 2010-03-19T13:20:19+00:00	[thread overview]
Message-ID: <Xns9D405F01ACF3BWarrensBlatherings@188.40.43.245> (raw)
In-Reply-To: bce19c00-0599-4ff6-a5cf-16bb3d742373@e7g2000yqf.googlegroups.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

Ludovic Brenta expounded in news:bce19c00-0599-4ff6-a5cf-16bb3d742373
@e7g2000yqf.googlegroups.com:

> Warren wrote on comp.lang.ada:
>> Imagine
>> a CPU that somehow in microcode was able to do a fast-malloc
>> of a stack frame (as part of a call), linking the new
>> frame back to the calling frame. Then you could eliminate
>> the need for a "linear virtual stack region" altogether. This
>> would allow code to freely fork into many parallel
>> threads without the issue of pre-allocating stack [address]
>> space to each new thread. When the called procedure executed
>> a "return", it would (in microcode) free the current stack
>> frame and return to the prior one. �The "call" allocate/free's
>> could be constrained to one general "stack heap".
> 
> I wonder how that would work with processors that have register
> windows specifically to reduce the need for a memory-based stack (i.e.
> SPARC, IA64 and maybe others).
> 
> --
> Ludovic Brenta.

I'm not sure I follow, but objects like small buffers would
presumably still occupy the current stack frame.

Warren



  reply	other threads:[~2010-03-19 13:20 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17 19:21 segfault with large-ish array with GNAT Jerry
2010-03-17 19:36 ` Gautier write-only
2010-03-17 19:58   ` Georg Bauhaus
2010-03-18  6:45     ` Jerry
2010-03-18  7:52       ` Ludovic Brenta
2010-03-18 23:57         ` Robert A Duff
2010-03-18 10:13       ` Jeffrey Creem
2010-03-18 10:23         ` Ludovic Brenta
2010-03-19  0:44           ` Jerry
2010-03-18 19:51         ` Adam Beneschan
2010-03-18 14:44       ` John B. Matthews
2010-03-19  4:44         ` Jeffrey R. Carter
2010-03-19  8:14           ` John B. Matthews
2010-03-18 15:36       ` Gautier write-only
2010-03-18 16:46       ` tmoran
2010-03-18 19:11         ` Warren
2010-03-18 17:03       ` Warren
2010-03-18 20:38         ` Maciej Sobczak
2010-03-19 13:26           ` Charmed Snark
2010-03-19 17:27             ` tmoran
2010-03-19 18:02               ` Simon Wright
2010-03-19 20:10                 ` Warren
2010-03-19 21:50                 ` Adam Beneschan
2010-03-19 20:24               ` Warren
2010-03-19 20:38           ` Warren
2010-03-19  8:31         ` Ludovic Brenta
2010-03-19 13:20           ` Warren [this message]
2010-03-19 12:04       ` Brian Drummond
2010-03-19 19:22         ` Jerry
2010-03-19 20:22         ` Jeffrey R. Carter
2010-03-19 23:24           ` Jerry
2010-03-20  0:25             ` Jeffrey R. Carter
2010-05-07 21:58       ` Raising the stack limit (was: segfault with large-ish array with GNAT) Björn Persson
2010-03-17 19:57 ` segfault with large-ish array with GNAT jonathan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox