comp.lang.ada
 help / color / mirror / Atom feed
From: dale@cs.rmit.edu.au (Dale Stanbrough)
Subject: Re: LRM on passing data *from* C
Date: 1999/05/22
Date: 1999-05-22T01:56:22+00:00	[thread overview]
Message-ID: <dale-2205991156210001@r1021c-20.ppp.cs.rmit.edu.au> (raw)
In-Reply-To: 7i51cr$o9k$1@nnrp1.deja.com

Robert Dewar wrote:

" An Ada program exported with convention C is supposed to have
  exactly the same calling sequence as a C program. The RM does
  indeed define what this means."


How could  this be? If "int" is implemented by compiler A as
being 16 bits, and by compiler B as 32 bits, how can you have
one simple interface?

Older compilers for the PC platform could easily have created 
legacy code in which in the calling conventions are based on
earlier processors (integer was 16 bits for the Meridian Ada 
compiler), while newer compilers produce 32 bit integers.

Dale




  reply	other threads:[~1999-05-22  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-21  0:00 LRM on passing data *from* C dennison
1999-05-22  0:00 ` Robert Dewar
1999-05-22  0:00   ` Dale Stanbrough [this message]
1999-05-22  0:00     ` Robert Dewar
1999-05-22  0:00 ` Dale Stanbrough
1999-05-22  0:00   ` Robert Dewar
replies disabled

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