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-Thread: 103376,4d062d5c58234698,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.73.134 with SMTP id l6mr329020pav.0.1355842946597; Tue, 18 Dec 2012 07:02:26 -0800 (PST) Received: by 10.49.127.198 with SMTP id ni6mr314895qeb.23.1355842946145; Tue, 18 Dec 2012 07:02:26 -0800 (PST) Path: s9ni50630pbb.0!nntp.google.com!kr7no10171469pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 18 Dec 2012 07:02:25 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: right compilation unit for C as main? From: Patrick Injection-Date: Tue, 18 Dec 2012 15:02:26 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-18T07:02:25-08:00 List-Id: Hello=20 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 w= ant 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 th= at 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