From: Patrick <patrick@spellingbeewinnars.org>
Subject: right compilation unit for C as main?
Date: Tue, 18 Dec 2012 07:02:25 -0800 (PST)
Date: 2012-12-18T07:02:25-08:00 [thread overview]
Message-ID: <b1d1bbac-0b53-4848-ae3c-92d85dc73df6@googlegroups.com> (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
next reply other threads:[~2012-12-18 15:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 15:02 Patrick [this message]
2012-12-18 15:28 ` right compilation unit for C as main? 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox