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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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 08:50:46 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!newsfeed.planete.net!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Locating a subprogram at user-specified address Date: Tue, 12 Jun 2001 11:29:53 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9g5chi$pcr$1@nh.pace.co.uk> References: <5OpV6.5250$pb1.200601@www.newsranger.com> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 992359794 26011 136.170.200.133 (12 Jun 2001 15:29:54 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 12 Jun 2001 15:29:54 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:8613 Date: 2001-06-12T15:29:54+00:00 List-Id: 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" wrote in message news:5OpV6.5250$pb1.200601@www.newsranger.com... > 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