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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,101c38a932801b81 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!m71g2000hse.googlegroups.com!not-for-mail From: george.priv@gmail.com Newsgroups: comp.lang.ada Subject: Re: Ada.Real_Time behavior with GNAT Date: Sat, 29 Mar 2008 14:21:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <1b4dfb0b-ada6-416d-bb2a-f00d02a112c3@s13g2000prd.googlegroups.com> NNTP-Posting-Host: 151.196.71.114 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1206825705 9996 127.0.0.1 (29 Mar 2008 21:21:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Mar 2008 21:21:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m71g2000hse.googlegroups.com; posting-host=151.196.71.114; posting-account=VnNb3AoAAACTpRtCcTrcjmPX7cs92k1Q User-Agent: G2/1.0 X-HTTP-Via: 1.1 SPARKS X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20636 Date: 2008-03-29T14:21:45-07:00 List-Id: On Mar 29, 3:46 pm, Konrad Grzanek wrote: > > My explanation is that GNAT RTL is improperly elaborated under Windows. > > Fortunately, a delay at the program beginning wakes it up. > > Thanks for such a quick response from all of you. I hope this will be > fixed in some future compiler release. And it's not so much disturbing > after all. I only wanted to confirm my initial suspicions. BTW is > there any registry (FAQ) of such unexpected Ada compiler behaviors ? It's even more interesting: My version worked but it is slightly different from your original in that Timing is enclosed in Main procedure. When I put Timing in separate package and it also worked fine. When I used your code exact it did show 0 time. It got to do with elaboration sequence as was mentioned already. I think for practical reasons real-time applications will be multi-package anyways, so I would not worry about it much. George.