comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Calling C function with structure parameter from ADA
Date: 1995/04/07
Date: 1995-04-07T00:00:00+00:00	[thread overview]
Message-ID: <dewar.797306159@gnat> (raw)
In-Reply-To: 3m48lp$jdh@usafa2.usafa.af.mil

Christopher, GCC goes out of its way to guarantee data compatibility and
calling sequence compatibility with the native C compilers in a given
configuration. If you ever find a case where there is an incompatibility,
then GCC considers it a bug, and you should report it to the GCC mailing
list as a bug. We know of no such bugs currently in any of the several
hundred configurations supported by GCC.

So When I say that GNAT's calling approach is compatible with C, I really
mean that, I don't just mean it is compatible with GCC. Of course there is no
guarantee that there is not a bug, but bugs can appear anywhere, and it
definitely would be considered to be a bug if GNAT passed a record by
value where C would pass it by address. If you find such a case, report
it as a bug!





  reply	other threads:[~1995-04-07  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-28 17:22 Calling C function with structure parameter from ADA C.G. Williams
1995-03-29  0:00 ` Theodore Dennison
1995-04-06  0:00   ` Robert Dewar
1995-04-07  0:00     ` Chris Warack <sys mgr>
1995-04-07  0:00       ` Robert Dewar [this message]
     [not found]     ` <D6pwGs.8wE@thomsoft.com>
1995-04-19  0:00       ` Fergus Henderson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox