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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bc8ce99e45144be X-Google-Attributes: gid103376,public From: "Pat Rogers" Subject: Re: Task stack overflow problem with GNAT Date: 2000/10/09 Message-ID: #1/1 X-Deja-AN: 679327191 References: <8rkhnt$4ac$1@nnrp1.deja.com> <39DE061B.51F62B69@icdc.com> <8rrtmc$fcc$1@nnrp1.deja.com> <3A094BF4.C737809F@telepath.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Complaints-To: abuse@swbell.net X-Trace: nnrp1.sbc.net 971103220 208.191.184.67 (Mon, 09 Oct 2000 09:53:40 CDT) Organization: SBC Internet Services X-MSMail-Priority: Normal NNTP-Posting-Date: Mon, 09 Oct 2000 09:53:40 CDT Newsgroups: comp.lang.ada Date: 2000-10-09T00:00:00+00:00 List-Id: "Ted Dennison" 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