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,69d70de9327389c7,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-02 11:02:53 PST Message-ID: <3D21E96E.7030109@thedomain.net> Date: Tue, 02 Jul 2002 19:57:02 +0200 From: Fredrick Smith User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Simple Question - Direct Access to memory with ADA Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.215.62.123 X-Original-NNTP-Posting-Host: 217.215.62.123 X-Trace: post.newsfeed.com 1025632317 217.215.62.123 (2 Jul 2002 12:51:57 -0500) Organization: Newsfeeds.com http://www.newsfeed.com 100,000+ UNCENSORED Newsgroups. The #1 Usenet Service on the Planet! X-Comments: This message was posted through Newsfeed.com's, FREE publicly accessible Usenet Server - "post.newsfeeds.com" X-Comments2: IMPORTANT: Newsfeed.com does not condone, nor support, spam or any illegal or copyrighted postings. X-Comments3: IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! X-Report: Please report illegal or inappropriate use to X-Abuse-Info: Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!ihug.co.nz!news-out.newsfeeds.com!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!post.newsfeed.com!not-for-mail Xref: archiver1.google.com comp.lang.ada:26812 Date: 2002-07-02T19:57:02+02:00 List-Id: *** post for FREE via your newsreader at post.newsfeed.com *** Hi, Sorry for the simple question - I was wondering the most efficient way (moral arguments aside) to get direct access to memory in ADA 95 (specifically using the GNAT compiler) - assuming the OS allows access to it. Its quite easy to do in C (a couple of lines to write to a memory location) *my_int_ptr = (int *) 0xF00BA; etc.. This can easily be macro/funcionalized. I could use an Address Clause for each location in memory I wish to access, this could become tiresome for large chunks of memory. There doesnt seem to be any provided service from gnat system packages to perform this function (probably for very good reasons). Anyone have an efficient method to do this? will I need to use the pragma Atomic as well? Am I going to have to resort to Unchecked_Conversion? I hope I have made the question clear. Regards Fred. -----= Posted via Newsfeed.Com, Uncensored Usenet News =----- http://www.newsfeed.com - The #1 Newsgroup Service in the World! -----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----