comp.lang.ada
 help / color / mirror / Atom feed
* Is All_Calls_Remote permitted in non DSA code?
@ 2003-09-02  0:15 Dr. Adrian Wrigley
  2003-09-02  7:06 ` Samuel Tardieu
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. Adrian Wrigley @ 2003-09-02  0:15 UTC (permalink / raw)


Hi!

(Continuing my monolog on issues linked to Annex E...)

I have found that GNAT 3.15p generates code that won't run properly when
calling subprograms in a unit marked "pragma All_Calls_Remote;"

gnatmake builds the program fine, and then a Program_Error is raised
at runtime at the point of call.  I hadn't anticipated this.

Adding an Annex E pragma shouln't stop normal compilation of the code,
should it?  Simply adding a  "pragma Remote_Call_Interface;" doesn't stop
normal operation.

Thank you for your suggestions.
-- 
Dr. Adrian Wrigley, Cambridge


Exception message     :
Distribution support not installed in your environment
For information on GLADE, contact Ada Core Technologies




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is All_Calls_Remote permitted in non DSA code?
  2003-09-02  0:15 Is All_Calls_Remote permitted in non DSA code? Dr. Adrian Wrigley
@ 2003-09-02  7:06 ` Samuel Tardieu
  0 siblings, 0 replies; 2+ messages in thread
From: Samuel Tardieu @ 2003-09-02  7:06 UTC (permalink / raw)


>>>>> "Adrian" == Adrian Wrigley <Dr.> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-02  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-02  0:15 Is All_Calls_Remote permitted in non DSA code? Dr. Adrian Wrigley
2003-09-02  7:06 ` Samuel Tardieu

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