comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Locating a subprogram at user-specified address
Date: Tue, 12 Jun 2001 14:36:49 GMT
Date: 2001-06-12T14:36:49+00:00	[thread overview]
Message-ID: <5OpV6.5250$pb1.200601@www.newsranger.com> (raw)
In-Reply-To: tic9rgqlp8fnc1@corp.supernews.com

In article <tic9rgqlp8fnc1@corp.supernews.com>, jaya says...
>My query is : How do I locate a subprogram or package at a known memory 
>address. Using "to_address" attribute works only for objects(user-defined 
>variables) and not for subprograms or packages.  

Do you mean that you want your subprogram to be put there, or that you know
there is already one there, and you want to call it?

If the former, its a linker/loader issue. If its the latter, I suspect there's
some gymnastics you can perform with System.Address_To_Access_Conversions and
subprogram pointers.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-06-12 14:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-12 14:30 Locating a subprogram at user-specified address jaya
2001-06-12 14:36 ` Ted Dennison [this message]
2001-06-12 15:29   ` Marin David Condic
2001-06-12 17:27     ` tmoran
replies disabled

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