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: 115aec,707a256758168c49 X-Google-Attributes: gid115aec,public X-Google-Thread: 103376,d9f70618a1f87853 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-05 05:27:38 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jim@ghs.com (Jim Gleason) Newsgroups: comp.realtime,comp.lang.ada Subject: Re: AdaMULTI/Ada 95 for Bare Board Date: 5 Mar 2002 05:27:37 -0800 Organization: http://groups.google.com/ Message-ID: References: <3C7CF687.15D36BBE@avionics.saab.se> <3C8356E5.28D0B600@icn.siemens.de> <3c83596e.9029553@news.demon.co.uk> NNTP-Posting-Host: 24.94.108.60 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1015334858 10833 127.0.0.1 (5 Mar 2002 13:27:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 5 Mar 2002 13:27:38 GMT Xref: archiver1.google.com comp.realtime:4970 comp.lang.ada:20804 Date: 2002-03-05T13:27:38+00:00 List-Id: john.mccabe@emrad.ns.com (John McCabe) wrote in message news:<3c83596e.9029553@news.demon.co.uk>... > Watch out for allocation of huge stack areas for aggregate assignments > to arrays... > > e.g.: > > type Large_Array is array (1..100, 1..10, 1..1000) of integer; > My_Large_Array : Large_Array; > > procedure Initialise > begin > My_Large_Array = (others => 0, others => 0, others => 0); > end Initialise; > > > will attempt to allocate a 4MByte or so block of stack to create an > aggregate before copying it to the global variable (My_Large_Array). > Green Hills claim it is *required* by the RM, but certain people who > were involved in writing the manual disagree! I don't believe Green Hills claimed this. Actually, the last two releases of the Green Hills compiler do NOT use a block of stack to temporarily hold the initial value before copying into the global variable. The global variable (My_Large_Array) is initialized directly by the generated code. I hope this clears this up. Jim Gleason Green Hills Software, Inc.