comp.lang.ada
 help / color / mirror / Atom feed
* Info on task constructs/Posix thread equivalence?
@ 1996-06-09  0:00 Dale Stanbrough
  1996-06-09  0:00 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Stanbrough @ 1996-06-09  0:00 UTC (permalink / raw)



Does anyone know of any documents that list the equivalences
of Ada tasking features and Posix Threads?

I've never come across any documents that described how Gnat
handles the mapping (and not being compiler conversant, I'm
hesitant to delve into the compiler).


Thanks,

Dale




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

* Re: Info on task constructs/Posix thread equivalence?
  1996-06-09  0:00 Info on task constructs/Posix thread equivalence? Dale Stanbrough
@ 1996-06-09  0:00 ` Robert Dewar
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Dewar @ 1996-06-09  0:00 UTC (permalink / raw)



Dale said

"I've never come across any documents that described how Gnat
handles the mapping (and not being compiler conversant, I'm
hesitant to delve into the compiler)."

There is a printed document, but it is out of date, the current 
documenttion is in the sources (where it has a much better chance
of staying up to date).

You don't need to be compiler conversant here, we are talking about
runtime routines, which are just Ada code! Start by looking at the
s-taspri.ads and s-taspri.adb units which are the low level mapping
from GNULL (the low level interface) to Pthreads.

Note that even the binary distributions have full copies of the run time
sources, just so this is easy to do!

If you want to look at the high level interface, the easiest thing is to
run the compiler on various tasking constructs with -gnatdg, that will
show you the low level code, including the calls to the tasking runtime.





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

end of thread, other threads:[~1996-06-09  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-09  0:00 Info on task constructs/Posix thread equivalence? Dale Stanbrough
1996-06-09  0:00 ` Robert Dewar

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