comp.lang.ada
 help / color / mirror / Atom feed
From: Theodore Dennison <dennison@escmail.orl.mmc.com>
To: kilgallen@eisner.decus.org
Subject: Re: Calling Ada from C
Date: 1995/03/29
Date: 1995-03-29T00:00:00+00:00	[thread overview]
Message-ID: <3lckgf$36r@theopolis.orl.mmc.com> (raw)
In-Reply-To: 1995Mar28.214747.9516@eisner

Larry Kilgallen <kilgallen@eisner.decus.org> writes:
> In article <3l6j5k$h05@theopolis.orl.mmc.com>, Theodore Dennison <dennison@escmail.orl.mmc.com> writes:
> > Robert Dewar <dewar@cs.nyu.edu> writes:
> 
> >> GNAT certainly allows the main program to be in a language other than C
> >> with no restrictions (in fact the main program of the *all* GNAT programs
> >> is typically in C, since that's what the binder generates). But you can
> >> also have your own explicit main program.
> 
> > With NO restrictions? Including tasking? The C program doesn't have to make
> > any special calls to elaborate everything?
> 
> We have had two examples, both claiming that the respective compilers
> did not have such a restriction.  Perhaps it would be more of a service
> to list those implementations which _do_ have such a restriction.

Well, my claim is that gnat DOES have such a restriction. If your main
routine is not Ada (or rather, gnat's automaticly genereated C main
routine) then you have to manually call the routines to elaborate your
code (assuming you have elaboration code). 

SunAda requires you go through roughly the same process. Since SunAda
is VERDIX, there are probably many more implementations with the same
approach.

This is all getting a little off of the subject, which was helping 
someone with a SunAda problem. For my own (rather large) part in dragging
us off that subject, I apologize.

T.E.D. (structured programming bigot)





  reply	other threads:[~1995-03-29  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-22 13:26 Calling Ada from C Roger L Costello
1995-03-22 13:58 ` David Paton
1995-03-23 17:22 ` Theodore Dennison
1995-03-24 17:14   ` Larry Kilgallen, LJK Software
1995-03-26 11:53     ` Robert Dewar
1995-03-27 14:47       ` Theodore Dennison
1995-03-28  0:00         ` Robert Dewar
1995-03-28  0:00         ` Cyrille Comar
1995-03-29  2:47         ` Larry Kilgallen, LJK Software
1995-03-29  0:00           ` Theodore Dennison [this message]
1995-04-04  0:00             ` Robert Dewar
1995-03-27 19:48     ` Robert I. Eachus
1995-03-29  0:00       ` Larry Kilgallen, LJK Software
  -- strict thread matches above, loose matches on Subject: below --
2007-02-22 15:46 hannibal.holm
2007-02-22 16:17 ` Ludovic Brenta
2007-02-22 17:28 ` Adam Beneschan
2007-02-22 20:40 ` Aurele
2007-02-23 13:53 ` Stephen Leake
2007-02-27 12:49   ` hannibal.holm
2007-02-27 18:03     ` Adam Beneschan
2007-02-28  2:54     ` Jeffrey R. Carter
2000-08-25  0:00 Maxwelton
1996-10-29  0:00 How is an ADA compiler done? Robert Dewar
1996-11-08  0:00 ` calling ADA from C EDSTAM Mikael
1996-11-14  0:00   ` Robert Dewar
1991-02-23 16:01 calling Ada " David B Lightstone
1988-10-16  0:23 calling ada from c Maureen Cragg
1988-10-17 17:21 ` Maureen Cragg
replies disabled

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