comp.lang.ada
 help / color / mirror / Atom feed
From: "Pat Rogers" <progers@NOclasswideSPAM.com>
Subject: Re: Task stack overflow problem with GNAT
Date: 2000/10/09
Date: 2000-10-09T00:00:00+00:00	[thread overview]
Message-ID: <UZkE5.1266$m75.233863@nnrp1.sbc.net> (raw)
In-Reply-To: 3A094BF4.C737809F@telepath.com

"Ted Dennison" <dennison@telepath.com> wrote in message
news:3A094BF4.C737809F@telepath.com...
> fabien_bousquet@my-deja.com wrote:
>
> > My code is supposed to be embedded and I do not use dynamic
allocation.
>
> Do you mean you don't have a heap and access to the "new" operator
at all,
> or do you mean you do, but you aren't supposed to use them?
>
> There should be no problem in performing dynamic allocation in an
embedded
> system, as long as you do it once at startup rather than repetedly
at
> runtime.

Well, yes, if you don't have control over the allocator behavior.  On
the other hand, deterministic behavior is the issue, and given a
deterministic allocator you can do dynamic allocation in the real-time
part as well (other issues not being prohibitive).  That's a good
reason to build your own pools, which is why I include one in my
real-time course.

PS: It is all "dynamic".

---
Patrick Rogers                      Consulting and Training in:
http://www.classwide.com      Deadline Schedulability Analysis
progers@classwide.com        Software Fault Tolerance
(281)648-3165                       Real-Time/OO Languages

Adam ... does not deserve all the credit; much is due to Eve, the
first woman, and Satan, the first consultant.
Mark Twain






  reply	other threads:[~2000-10-09  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-06  0:00 Task stack overflow problem with GNAT fabien_bousquet
2000-10-06  0:00 ` Marc A. Criley
2000-10-09  0:00   ` fabien_bousquet
2000-10-09  0:00     ` Ted Dennison
2000-10-09  0:00       ` Pat Rogers [this message]
2000-10-09  0:00         ` Steven Deller
2000-10-10  0:00           ` fabien_bousquet
2000-10-09  0:00       ` fabien_bousquet
replies disabled

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