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,d02eb5c33ac65d9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-09 07:05:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!feed.news.nacamar.de!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Array and memory usage Date: Sun, 9 Mar 2003 15:05:18 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <2397C8D4BA396B7A.ADB0E590CE8E5EAE.1C7AEC9AFCA7BE12@lp.airnews.net> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1047222318 21275 129.241.83.78 (9 Mar 2003 15:05:18 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sun, 9 Mar 2003 15:05:18 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:35092 Date: 2003-03-09T15:05:18+00:00 List-Id: Marin David Condic wrote: > Note that it is *probably* generating code that will initialize the objects > as they are created. It is probably also not the most efficient way that the > initialization could be done, either. I've seen major problems with embedded > code where we've wanted to initialize global RAM data and couldn't get > static initialization of it using the usual Ada mechanisms. I've also seen > where initialization of the type would generate code to initialize each > field of the record with function calls but initialization of the object > with an aggregate would result in a simple memory move of the whole thing. Ok so this is something the compiler supplies and this could be different with another compiler? > If you care about code size and efficiency, you can find a number of > "surprises" and "gotchas" with Ada. What do you mean? -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/