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


Jonathan said

<<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.
>>

Following up on my previous message .... the above makes no sense. The
calling sequence includes the specifications for how structs are passed
by reference, and thus how they are layed out and aligned. A calling
sequence that is "carved in stone" must include these issues in the carving!

Obviously if you use other than the default layout, by the use of the
equiavelnt of pragmas or rep clauses, then no Ada compiler can 
telephaythically guess what you have done. 

However, every Ada compiler wlil implement sufficient flexibility so that
you can use analogous statements in your Ada program to align and lay out
your data in a compatible manner.

Jonathan, I don't see any problem here at all. If you see one, let me make
the same request I make of Joe, please give us an example of what you
think is a problem case.





  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
     [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
1998-05-03  0:00                                         ` Robert Dewar [this message]
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                           ` 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
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