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!b1g2000hsg.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 12:06:38 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4c57f978-471a-4f41-baf1-ba26902cdbbe@b1g2000hsg.googlegroups.com> References: <4982c29a-098c-4ff4-ac59-59d54ac65340@a70g2000hsh.googlegroups.com> <47ee7c8c$0$4857$9b4e6d93@newsspool4.arcor-online.net> 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 1206817598 15000 127.0.0.1 (29 Mar 2008 19:06:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 29 Mar 2008 19:06:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000hsg.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:20633 Date: 2008-03-29T12:06:38-07:00 List-Id: On Mar 29, 1:29 pm, Georg Bauhaus wrote: > george.p...@gmail.com wrote: > > Your program should overflow (unless you suppress checks) raising > > Constraint_Error for Val. It runs fine on Vista though after fixing > > overflow problem > > The overflow fix (+ I <--> + 1 ?), and also running GNAT in Ada > mode (-gnato). Both do not fix the Total_T = 0.0 for me though. > Vista 64bits. > > GNATLS GPL 2007 (20070405-41) > Copyright 1997-2007, Free Software Foundation, Inc. > > The Debian GNAT compiler produces expected results, though. > > GNATLS 4.1.220061115prerelease (Debian 4.1.1-22) > Copyright 1997-2005 Free Software Foundation, Inc. Checked again after rebooting and works fine (Vista Ultimate: Version 6.0.6000) Gateway 2000 Tablet. Takes 4 times longer with range checking (-O2). C:\Users\gpriv.AXONX\Documents\ada>main 100000000 0.101334388 C:\Users\gpriv.AXONX\Documents\ada>main 100000000 0.429672137 George.