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,90a95baabf37be00 X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: LRM on passing data *from* C Date: 1999/05/22 Message-ID: #1/1 X-Deja-AN: 480747081 References: <7i4d5n$aaf$1@nnrp1.deja.com> <7i51cr$o9k$1@nnrp1.deja.com> X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 927338182 24545 131.170.66.220 (22 May 1999 01:56:22 GMT) Organization: RMIT NNTP-Posting-Date: 22 May 1999 01:56:22 GMT Newsgroups: comp.lang.ada Date: 1999-05-22T01:56:22+00:00 List-Id: 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