From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Locating a subprogram at user-specified address
Date: Tue, 12 Jun 2001 11:29:53 -0400
Date: 2001-06-12T15:29:54+00:00 [thread overview]
Message-ID: <9g5chi$pcr$1@nh.pace.co.uk> (raw)
In-Reply-To: 5OpV6.5250$pb1.200601@www.newsranger.com
I seem to recall in Ada you could do some version of "for-use-at" for a
subprogram to get it to a specific address. Or even "for
Subprogram_Name'Address use ..." which I think is described in 13.3(10)
(Then you got to fight with the linker trying to tell it: "No. I *really*
meant to do that!") Details would be specified in Chapter 13 if so & then
you get to go looking for your compiler documentation to see what
Implementation Defined Restrictions are placed on it.
MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas www.pacemicro.com
Enabling the digital revolution
e-Mail: marin.condic@pacemicro.com
Web: http://www.mcondic.com/
"Ted Dennison" <dennison@telepath.com> wrote in message
news:5OpV6.5250$pb1.200601@www.newsranger.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
next prev parent reply other threads:[~2001-06-12 15:29 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
2001-06-12 15:29 ` Marin David Condic [this message]
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