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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afaf6b0b4d015191 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-07 13:08:14 PST Path: newsfeed.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!dvdeug From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Newsgroups: comp.lang.ada Subject: Re: including C routines in Ada (newbie ask for assistance) Date: 7 May 2001 17:39:39 GMT Organization: Oklahoma State University Message-ID: <9d6mkr$71u1@news.cis.okstate.edu> References: <3af67ee5.9539925@news.nl.uu.net> <3AF68F86.7DA2B0C9@earthlink.net> <9d69pk$sh$1@nh.pace.co.uk> Reply-To: dstarner98@aasaa.ofe.org NNTP-Posting-Host: x8b4e555d.dhcp.okstate.edu User-Agent: slrn/0.9.7.0 (Linux) Xref: newsfeed.google.com comp.lang.ada:7285 Date: 2001-05-07T17:39:39+00:00 List-Id: On Mon, 7 May 2001 10:00:19 -0400, Marin David Condic wrote: > That is to say that two mismatched compilers might never be able to hook > code together since there is nothing mandatory about how a C compiler must > present its interface {calling sequence & parameter passing} and the Ada > compiler attempting to connect to it via pragmas is only going to do so via > some specific conventions that it knows about. Gnat will know about the gcc > method of interfacing, which is probably the same as what the underlying OS > uses for its C-written calls, but with some other compiler at the other end, > you get no guarantees. GCC works very hard to support the system ABI. On most systems, the C ABI is standardized and very well supported. Note that there's nothing mandatory about how an Ada compiler must present its interface, and except in rare cases (DEC Ada & GNAT) two Ada compilers won't share an interface. -- David Starner - dstarner98@aasaa.ofe.org Pointless website: http://dvdeug.dhis.org "I don't care if Bill personally has my name and reads my email and laughs at me. In fact, I'd be rather honored." - Joseph_Greg