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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.52.179.138 with SMTP id dg10mr5914167vdc.2.1392504110961; Sat, 15 Feb 2014 14:41:50 -0800 (PST) X-Received: by 10.140.91.227 with SMTP id z90mr278752qgd.3.1392504110941; Sat, 15 Feb 2014 14:41:50 -0800 (PST) Path: border1.nntp.ams3.giganews.com!backlog3.nntp.ams3.giganews.com!backlog3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!209.197.12.246.MISMATCH!nx02.iad01.newshosting.com!newshosting.com!69.16.185.111.MISMATCH!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!k15no21196136qaq.0!news-out.google.com!s3ni20561qas.0!nntp.google.com!k15no21196135qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 15 Feb 2014 14:41:50 -0800 (PST) In-Reply-To: <4468c222-28ce-46f2-91e3-78d34be01eb0@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.95.3.197; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu NNTP-Posting-Host: 201.95.3.197 References: <215f6df2-a7ec-42f4-ac82-656d5b12bf61@googlegroups.com> <8383f5d6-3f66-415b-ab3f-8801fa377a6b@googlegroups.com> <8200939f-9bbd-44dd-848c-00c663f37121@googlegroups.com> <4468c222-28ce-46f2-91e3-78d34be01eb0@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <40f0bb5d-b1ed-48d4-8fee-f12dc44cee50@googlegroups.com> Subject: Re: Best representation for spares From: "Rego, P." Injection-Date: Sat, 15 Feb 2014 22:41:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2329 X-Received-Body-CRC: 2815876433 X-Original-Bytes: 2647 Xref: number.nntp.dca.giganews.com comp.lang.ada:184896 Date: 2014-02-15T14:41:50-08:00 List-Id: On Saturday, February 15, 2014 8:37:36 PM UTC-2, Rego, P. wrote: > On Saturday, February 15, 2014 7:41:56 PM UTC-2, Jeffrey Carter wrote: > > > Zero is not a valid value for the components of Spare, since it's a boolean type. > > > > > > Oh yes, I actually used > > type Zero_Bit is range 0 .. 1; > > Spare : Zero_Bits (3 .. 31) := (3 .. 31 => 0); > > > > but in this case > > > default initialization of "Auxiliary_Peripherals_Register_Map" may modify overlaid storage > > > use pragma Import for "Auxiliary_Peripherals_Register_Map" to suppress initialization (RM B.1(24)) > > > > Do you have an idea? I took a look on ARM B.1(24), and it says "The declaration of an imported object shall not include an explicit initialization expression. Default initializations are not performed." So what should actually happen in this case if I use Spare : Zero_Bits (3 .. 31) := (3 .. 31 => 0); ?