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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d2cba5965c7bfcd5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-03 07:38:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!nf3.bellglobal.com!wn1feed!worldnet.att.net!135.173.83.72!wnfilter2!worldnet-localpost!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3C824348.2010203@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: 64bit access to an array of 8bit values References: <3C823A1A.6030006@users.sf.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 03 Mar 2002 15:38:00 GMT NNTP-Posting-Host: 12.86.32.12 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1015169880 12.86.32.12 (Sun, 03 Mar 2002 15:38:00 GMT) NNTP-Posting-Date: Sun, 03 Mar 2002 15:38:00 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:20724 Date: 2002-03-03T15:38:00+00:00 List-Id: Dave Poirier wrote: > I'm trying to modelize a small virtual machine, and I'm stuck on the > memory model. I'm defining the memory as an array of 8bit values, so > that I am able to access every byte individually. The problem comes > when I try to access them with other data size, like 16/32/64bit. GNAT > simply refuses to do the pointer conversion (yeah, probably a bad habit). > Please excuse me if I do not accurately understand your goals here. It looks to me like you are trying to allocate different globs of data from a reserved chunk of bytes. If this is true then I suggest you read about Ada Storage Pools. I believe Storage Pools are the mechanism you want. Jim Rogers