From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: including C routines in Ada (newbie ask for assistance)
Date: Mon, 7 May 2001 17:17:21 -0400
Date: 2001-05-07T21:17:23+00:00 [thread overview]
Message-ID: <9d73d3$9it$1@nh.pace.co.uk> (raw)
In-Reply-To: 9d6mkr$71u1@news.cis.okstate.edu
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" <dvdeug@x8b4e53cd.dhcp.okstate.edu> 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.
>
next prev parent reply other threads:[~2001-05-07 21:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-07 10:57 including C routines in Ada (newbie ask for assistance) Noam Kloos
2001-05-07 13:01 ` Marc A. Criley
2001-05-07 14:00 ` Marin David Condic
2001-05-07 17:39 ` David Starner
2001-05-07 21:17 ` Marin David Condic [this message]
2001-05-09 5:39 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox