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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71c743c03ed191fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-21 20:34:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!p01!news2.central.cox.net.POSTED!53ab2750!not-for-mail Message-ID: <3D8D3A5B.8020702@telepath.com> From: Ted Dennison User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Beginer problem: variable array size References: <38993b18.0209191906.b56b982@posting.google.com> <3D8B4CC9.5020202@cogeco.ca> <1032544053.616510@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 22 Sep 2002 03:34:18 GMT NNTP-Posting-Host: 68.12.51.201 X-Complaints-To: abuse@cox.net X-Trace: news2.central.cox.net 1032665658 68.12.51.201 (Sat, 21 Sep 2002 23:34:18 EDT) NNTP-Posting-Date: Sat, 21 Sep 2002 23:34:18 EDT Organization: Cox Communications Xref: archiver1.google.com comp.lang.ada:29243 Date: 2002-09-22T03:34:18+00:00 List-Id: Hyman Rosen wrote: > Warren W. Gay VE3WWG wrote: > >> The C++ STL for example, >> would (I assume) not cut it for many/most realtime systems because of >> the amount of dynamic memory assignments that take place behind the >> scenes in the STL routines > > > The amount of memory allocation in the STL is predictable. Well, no. Its suggested that certian structures not allocate memory under certian cirucumstances (eg: Vectors aren't supposed to allocate memory during the rest of their runtime if you reserve a certian size up front and don't exceed those bounds). But there is no *requirement* that any STL template actually works that way. If you care, you really have to verify this with your vendor, or decipher the templates to see for yourself (good luck!) To make matters worse, the C++ compilers in the most common use by far, Microsoft's Visual C++ 6 and below, use a version of the STL that is pre-standard. Those compilers also don't support automatic instantiation properly. So many "standard" source code examples won't work on most C++ compilers. > >> Bottom line: The C++ programmer likes to criticize the Ada world > > > The C++ programmer ignores the Ada world, I'm afraid. ...not to mention their own standard.