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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81bec3225bdccedb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-02 00:17:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!freenix!enst.fr!beeblebrox!nobody From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Is All_Calls_Remote permitted in non DSA code? Date: Tue, 02 Sep 2003 09:06:10 +0200 Organization: Avian Carrier & Friends Message-ID: <873cffu0t9.fsf@inf.enst.fr> References: NNTP-Posting-Host: willow.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1062487021 34418 137.194.161.3 (2 Sep 2003 07:17:01 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 2 Sep 2003 07:17:01 +0000 (UTC) User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (cauliflower, i386--freebsd) Cancel-Lock: sha1:PwYh2calF6+iGIszWPdyoVyeqnQ= X-Leafnode-NNTP-Posting-Host: 127.0.0.1 Xref: archiver1.google.com comp.lang.ada:42054 Date: 2003-09-02T09:06:10+02:00 List-Id: >>>>> "Adrian" == Adrian Wrigley writes: Adrian> I have found that GNAT 3.15p generates code that won't run Adrian> properly when calling subprograms in a unit marked "pragma Adrian> All_Calls_Remote;" Adrian> gnatmake builds the program fine, and then a Program_Error is Adrian> raised at runtime at the point of call. I hadn't anticipated Adrian> this. "pragma All_Calls_Remote" forces all calls to subprograms in the designated units to go through the PCS (Partition Communication Subsystem). Therefore, you have to use "gnatdist" to build your application (which is part of GLADE) instead of "gnatmake". Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam