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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 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 14:31:40 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!isdnet!psinet-france!psiuk-f4!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: including C routines in Ada (newbie ask for assistance) Date: Mon, 7 May 2001 17:17:21 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9d73d3$9it$1@nh.pace.co.uk> References: <3af67ee5.9539925@news.nl.uu.net> <3AF68F86.7DA2B0C9@earthlink.net> <9d69pk$sh$1@nh.pace.co.uk> <9d6mkr$71u1@news.cis.okstate.edu> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 989270243 9821 136.170.200.133 (7 May 2001 21:17:23 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 7 May 2001 21:17:23 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: newsfeed.google.com comp.lang.ada:7286 Date: 2001-05-07T21:17:23+00:00 List-Id: Oh, I'll agree that in most cases things are going to line up nicely on a given platform. I'm just observing that there is nothing *mandatory* about this. It *might* work just fine. Then again, it might not. There's no way to be sure unless you specify the compilers & system involved. For a given platform, you might be able to conceive of a dozen possible ways of calling a C function and passing it parameters. Which of those dozen ways actually works will depend on the code generated by the C compiler. AFAIK, there's no government certification board or IEEE committee or any other agency that tests all compilers to see that they use some prescribed subprogram calling convention and spanks the implementations that disobey. :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "David Starner" wrote in message news:9d6mkr$71u1@news.cis.okstate.edu... > > 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. >