From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,976a050e0f89277c X-Google-Attributes: gid103376,public From: Jonathan Guthrie Subject: Re: Urgent question: malloc and ada... Date: 1998/05/03 Message-ID: <6ihtmc$nf9$1@news.hal-pc.org>#1/1 X-Deja-AN: 349826472 References: <352A79C2.15FB7483@nathan.gmd.de> <6hvm8k$t3l$1@news.hal-pc.org> <1998Apr30.180141.1@eisner> <6ihhko$i4n$1@news.nyu.edu> Organization: Information Broker Systems Internet Services Newsgroups: comp.lang.ada Date: 1998-05-03T00:00:00+00:00 List-Id: In comp.lang.ada Richard Kenner 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. > 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.