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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e688afdbf4b6072 X-Google-Attributes: gid103376,public From: Theodore Dennison Subject: Re: Calling Ada from C Date: 1995/03/29 Message-ID: <3lckgf$36r@theopolis.orl.mmc.com>#1/1 X-Deja-AN: 100540719 references: <3kp8il$avh@linus.mitre.org> <3ksanp$bab@theopolis.orl.mmc.com> <1995Mar24.121422.9469@eisner> <3l3kki$rg4@gnat.cs.nyu.edu> <3l6j5k$h05@theopolis.orl.mmc.com> <1995Mar28.214747.9516@eisner> to: kilgallen@eisner.decus.org content-type: text/plain; charset=iso-8859-1 organization: IPL InterNetNews site x-url: news:1995Mar28.214747.9516@eisner mime-version: 1.0 newsgroups: comp.lang.ada Date: 1995-03-29T00:00:00+00:00 List-Id: Larry Kilgallen writes: > In article <3l6j5k$h05@theopolis.orl.mmc.com>, Theodore Dennison writes: > > Robert Dewar 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)