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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d77ef9d82defaba,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-02 07:15:23 PST From: "Nick Williams" Newsgroups: comp.lang.ada Subject: Enforcing byte-wide access to memory Date: Tue, 2 Jan 2001 15:13:14 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 NNTP-Posting-Host: 193.114.91.187 Message-ID: <3a51f063_2@nnrp1.news.uk.psi.net> X-Trace: 2 Jan 2001 15:14:43 GMT, 193.114.91.187 Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!newspeer.clara.net!news.clara.net!nntp.news.xara.net!xara.net!gxn.net!news.lattis.xara.net!psiuk-f4!psiuk-p4!uknet!psiuk-n!nnrp1.news.uk.psi.net!193.114.91.187 Xref: supernews.google.com comp.lang.ada:3560 Date: 2001-01-02T15:13:14+00:00 List-Id: Hi there, Is there any way of enforcing that accesses to a particular region of memory be byte-wide? More specifically, I am involved with development of a real-time system which needs to read values from flash RAM, which can only be accessed byte-at-a-time. I understand that representation clauses and use of the Volatile pragma will cause the compiler to generate the appropriate code to view this memory as an array of bytes... However, a structured view of the data stored there is required (i.e. I want to be able to have Address clauses on variables to access those variables as stored on the flash RAM). What is the expected behaviour of an Unchecked_Conversion in these circumstances? Is there another way of achieving the desired effect? Thanks. Nick Williams.