comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Calling Ada from C (linux/gnat 4.3.2)
Date: Wed, 02 Nov 2011 12:05:38 -0400
Date: 2011-11-02T12:05:38-04:00	[thread overview]
Message-ID: <82ehxqmrvx.fsf@stephe-leake.org> (raw)
In-Reply-To: 8ba649f0-7ca1-4f05-a158-74b074e401ee@o19g2000vbk.googlegroups.com

awdorrin <awdorrin@gmail.com> 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



  parent reply	other threads:[~2011-11-02 16:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01 18:46 Calling Ada from C (linux/gnat 4.3.2) awdorrin
2011-11-01 20:44 ` Jeffrey Carter
2011-11-01 23:38 ` Simon Wright
2011-11-02  4:17 ` anon
2011-11-02 16:05 ` Stephen Leake [this message]
2011-11-03 16:17   ` awdorrin
2011-11-08 23:22     ` awdorrin
2011-11-09 10:46       ` Pascal Obry
2011-11-09 21:10         ` Ludovic Brenta
2012-02-28 16:28 ` Matt Grochowalski
replies disabled

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