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,4e101bd1b1b0a66c X-Google-Attributes: gid103376,public From: Gautier Subject: Re: Calling Ada proceedures from a C program Date: 1999/05/20 Message-ID: <37445D68.A8772727@Maths.UniNe.CH>#1/1 X-Deja-AN: 480224804 Content-Transfer-Encoding: 7bit References: <37444D8D.B6C7D7E5@orca.ds.boeing.com> To: Jason LaPenta Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-05-20T00:00:00+00:00 List-Id: > The originol proc. is test (w/out the two underscores). I haven't been > able to find any examples of doing this sort of thing, so if you know of > any on the web or otherwise it would help to point me in the right > direction. This is surely because the natural mixing is the reverse: interfacing C / assembler from Ada. Some reasons, roughly: - there are interfacing facilities in Ada language for C/C++, Fortran,... - Ada has modularity, so an Ada package has a richer information than that you find in an .o file produced by assembler/C/C++ or any other macro-assembler; - there are initialisation sequences in an Ada package; - there are exceptions that should be able to be cascaded until the main procedure; - you can choose the main procedure without calling it "main" The thing you are trying to do is like interfacing C code into a main program in assembler... Hoping it helps... -- Gautier -------- http://members.xoom.com/gdemont/