comp.lang.ada
 help / color / mirror / Atom feed
From: Jonathan Guthrie <jguthrie@brokersys.com>
Subject: Re: Urgent question: malloc and ada...
Date: 1998/05/03
Date: 1998-05-03T00:00:00+00:00	[thread overview]
Message-ID: <6ihtmc$nf9$1@news.hal-pc.org> (raw)
In-Reply-To: 6ihhko$i4n$1@news.nyu.edu


In comp.lang.ada Richard Kenner <kenner@lab.ultra.nyu.edu> wrote:
> >Actually, I was commenting more on the alignment of structs (which, as
> >far as I know, can vary even on those systems with a single calling
> >convention) than the calling convention.  Calling conventions are usually
> >reasonably well standardized, the alignment of structs is not.  Yet your 
> >post implied that both are covered (as they would have to be) by the
> >requirements.

> On most modern systems, details of how structures are supposed to be aligned
> are discussed in the same document that discusses the calling sequence.

<snippage>

> I see no difference between the two issues.

On many systems, the calling convention is carved in stone.  Unfortunately,
on every C compiler that I know well, it is possible to adjust the
alignment of the fields in structs on a case-by-case basis.  Those alignments
do not have to correspond to any system convention or even make any 
sense.  Of course, most of the compilers I know well are for Intel
processors, but it's in the GCC documentation.  In fact GNU C allows a
lot more leeway in how you specify the alignment of the fields in a struct
than the MS-DOS/Windows compilers I've used.

I, for one, am a lot more likely to muck about with the struct alignment
than I am to attempt to change the calling convention.

In any case, that sounds pretty different to me.  The statement has been
made that the Ada compiler is required to deal with all the complexities
of the Ada/C interface, I'm just trying to probe the limits and find out
what they are.

-- 
Jonathan Guthrie (jguthrie@brokersys.com)
Information Broker Systems   +281-895-8101   http://www.brokersys.com/
12703 Veterans Memorial #106, Houston, TX  77014, USA

We sell Internet access and commercial Web space.  We also are general
network consultants in the greater Houston area.





  reply	other threads:[~1998-05-03  0:00 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-07  0:00 Urgent question: malloc and ada Guido Tesch
1998-04-09  0:00 ` Joe Gwinn
1998-04-10  0:00   ` Urgent question: malloc and ada...READ/NEW/FOLLOWUP Larry Kilgallen
1998-04-12  0:00     ` Joe Gwinn
1998-04-14  0:00       ` Robert Dewar
1998-04-16  0:00         ` Joe Gwinn
1998-04-17  0:00           ` Robert Dewar
1998-04-18  0:00             ` Joe Gwinn
1998-04-18  0:00               ` Robert Dewar
1998-04-25  0:00                 ` Joe Gwinn
1998-04-26  0:00                   ` Robert Dewar
1998-04-26  0:00                     ` Jonathan Guthrie
1998-04-26  0:00                       ` Simon Wright
1998-04-26  0:00                         ` Larry Kilgallen
1998-04-27  0:00                           ` Stephen Leake
1998-04-26  0:00                       ` Robert Dewar
1998-04-30  0:00                       ` Robert I. Eachus
1998-04-30  0:00                         ` Urgent question: malloc and ada Larry Kilgallen
1998-05-01  0:00                           ` Robert Dewar
1998-05-01  0:00                             ` Charles Hixson
1998-05-02  0:00                               ` Jonathan Guthrie
1998-05-02  0:00                             ` Corey Minyard
1998-05-06  0:00                             ` Robert I. Eachus
1998-05-12  0:00                               ` Craig T. Spannring
1998-05-12  0:00                                 ` Robert Dewar
     [not found]                           ` <matthew_heaney-ya023680003004981723000001@news.ni.net>
1998-05-01  0:00                             ` Robert Dewar
1998-05-01  0:00                               ` Larry Kilgallen
1998-05-02  0:00                                 ` Robert Dewar
1998-05-02  0:00                                   ` Jonathan Guthrie
1998-05-03  0:00                                     ` Richard Kenner
1998-05-03  0:00                                       ` Jonathan Guthrie [this message]
1998-05-03  0:00                                         ` Robert Dewar
1998-05-03  0:00                                         ` Richard Kenner
1998-05-03  0:00                                     ` Robert Dewar
1998-05-03  0:00                                   ` Larry Kilgallen
1998-05-01  0:00                       ` Urgent question: malloc and ada...READ/NEW/FOLLOWUP Fergus Henderson
1998-05-01  0:00                     ` Joe Gwinn
1998-05-02  0:00                       ` Larry Kilgallen
1998-05-05  0:00                       ` Robert Dewar
1998-04-10  0:00   ` Urgent question: malloc and ada Robert Dewar
1998-04-12  0:00     ` Joe Gwinn
1998-04-12  0:00       ` Enumeration Types (was: Urgent question: malloc and ada) Matthew Heaney
1998-04-13  0:00         ` Mark A Biggar
replies disabled

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