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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1af5d0f43b3ebc71 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-12 07:37:40 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.mesh.ad.jp!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: Subject: Re: Locating a subprogram at user-specified address Message-ID: <5OpV6.5250$pb1.200601@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 12 Jun 2001 10:36:49 EDT Organization: http://www.newsranger.com Date: Tue, 12 Jun 2001 14:36:49 GMT Xref: archiver1.google.com comp.lang.ada:8609 Date: 2001-06-12T14:36:49+00:00 List-Id: In article , 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