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,2a5f6199c3cc0e8b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.27.132 with SMTP id t4mr4240876pbg.3.1320249941411; Wed, 02 Nov 2011 09:05:41 -0700 (PDT) Path: p6ni63164pbn.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Calling Ada from C (linux/gnat 4.3.2) References: <8ba649f0-7ca1-4f05-a158-74b074e401ee@o19g2000vbk.googlegroups.com> Date: Wed, 02 Nov 2011 12:05:38 -0400 Message-ID: <82ehxqmrvx.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:xAulopWtYgwNxYDMsnXFX+XUqDI= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: b8e2d4eb16a54e26b0fa623682 Xref: news2.google.com comp.lang.ada:14277 Content-Type: text/plain; charset=us-ascii Date: 2011-11-02T12:05:38-04:00 List-Id: awdorrin writes: > I am trying to port a program originally written on VxWork to Linux. > The main program is written in C and spawns new threads and in the new > threads calls are made to Ada procedures. I suggest you rewrite the C main in Ada, and avoid all of these problems. Having a C main is probably a good idea in VxWorks, but totally unnecessary in Linux. Getting "C threads" and Ada tasks to intermix properly is not trivial. -- -- Stephe