comp.lang.ada
 help / color / mirror / Atom feed
* right compilation unit for C as main?
@ 2012-12-18 15:02 Patrick
  2012-12-18 15:28 ` Brian Drummond
  2012-12-18 17:14 ` Robert A Duff
  0 siblings, 2 replies; 9+ messages in thread
From: Patrick @ 2012-12-18 15:02 UTC (permalink / raw)


Hello 

I am trying to run concurrent Ada code bound to a C main.

I can get the Ada side to run if I explicitly call a procedure but I just want it to start running on adainit() and not block C untill it completes . I tried to write the Ada code inside a task but I ended up with an error that a task body is not a compilation unit.

is there someway to have C main looping through C code and have an Ada task running or do I have to call C as a task? I would prefer to have C as main as some libraries seem to expect to be called from it.

Thanks for reading



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

end of thread, other threads:[~2012-12-19 16:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18 15:02 right compilation unit for C as main? Patrick
2012-12-18 15:28 ` Brian Drummond
2012-12-18 15:42   ` Patrick
2012-12-18 17:13   ` Robert A Duff
2012-12-18 23:04     ` Brian Drummond
2012-12-19  3:04     ` Simon Wright
2012-12-19  8:00       ` Niklas Holsti
2012-12-19 16:31       ` Robert A Duff
2012-12-18 17:14 ` Robert A Duff

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