comp.lang.ada
 help / color / mirror / Atom feed
* Simple Question - Direct Access to memory with ADA
@ 2002-07-02 17:57 Fredrick Smith
  2002-07-02 19:46 ` Pat Rogers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Fredrick Smith @ 2002-07-02 17:57 UTC (permalink / raw)


*** 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! =-----
                  



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-04  4:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-02 17:57 Simple Question - Direct Access to memory with ADA Fredrick Smith
2002-07-02 19:46 ` Pat Rogers
2002-07-02 20:23 ` Robert A Duff
2002-07-04  4:01 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox