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-Thread: 103376,bf2571446148ae30 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.41 with SMTP id gv9mr403841pbc.5.1325738146709; Wed, 04 Jan 2012 20:35:46 -0800 (PST) Path: lh20ni130719pbb.0!nntp.google.com!news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Can't set executable stack size during compilation Date: Thu, 05 Jan 2012 04:35:43 +0000 Message-ID: References: <4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net> <4f04c66c$0$6625$9b4e6d93@newsspool2.arcor-online.net> Mime-Version: 1.0 X-Trace: individual.net +KXTJ8Z1jrhhiBRSUz/1ywA1JwFfnz2aLiUHuiVX+dSng/JUzj Cancel-Lock: sha1:i4OtZ0v6Vv8MEhD89Xy2YA6EhWc= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Can't set executable stack size during compilation Thread-Index: AczLY3wH8jJ3XRdBWkC1+wRFGImRGQ== Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: 2012-01-05T04:35:43+00:00 List-Id: On 05/01/2012 01:06, in article je2t32$20h$1@munin.nbi.dk, "Randy Brukardt" wrote: > "Georg Bauhaus" wrote in message > news:4f04c66c$0$6625$9b4e6d93@newsspool2.arcor-online.net... >> On 1/4/12 6:22 PM, Bill Findlay wrote: >>> On 04/01/2012 16:27, in article >>> 4f047e0f$0$6582$9b4e6d93@newsspool3.arcor-online.net, "Georg Bauhaus" >>> wrote: >>>> >>>> FWIW, I made a little test program; I think it is legal >>> >>> It's not legal, of course: it fetches unassigned variables, >> >> I had though that variables not assigned (uninitialized?) >> won't be the subject of legality rules (and would otherwise >> have to be rejected during compilation or post-compilation)? >> >> If the program did perform I/O, its executions is likely >> to have error, yes. > > Formally, an "illegal" program is one that fails a Legality Rule, and those > are checked at compile-time. > > I suspect that Bill has being more informal ... Yes, I wasn't being legalistic, just pragmatic. 8-) > ... but even then, an Ada program can use an uninitialized value without the > program being bad (erroneous); doing so might only be a bounded error and > may not raise any exception at all depending on what is actually done. > ("Invalid" values are allowed so long as they are not used to do array > indexing and some other things.) As it happens, when I ran it I got: > /Users/wf/KDF9/emulation/Build: ./onstack > > raised CONSTRAINT_ERROR : onstack.adb:19 range check failed because my default GNAT switches ask it to (attempt to) check for uses of uninitialized variables. -- Bill Findlay with blueyonder.co.uk; use surname & forename;