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, MSGID_RANDY 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: Robert Dewar Subject: Re: LRM on passing data *from* C Date: 1999/05/22 Message-ID: <7i69lg$h8o$1@nnrp1.deja.com>#1/1 X-Deja-AN: 480830864 References: <7i4d5n$aaf$1@nnrp1.deja.com> <7i51cr$o9k$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x31.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Sat May 22 12:58:24 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-05-22T00:00:00+00:00 List-Id: In article , dale@cs.rmit.edu.au (Dale Stanbrough) wrote: > Robert Dewar wrote: > > 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? This is an Ada83 style question :-) In Ada 95, this problem is 100% solved. The Ada compiler MUST be written to understand the conventions of the C compiler. If there are multiple C compilers with different conventions (an unusual situation, probably only found in the chaotic PC world) then a vendor has two alternatives: 1. Support one of these compilers, and document which one 2. Support two or more with separate conventions, e.g. pragma Export (Borland_C, procname); In fact, even in the PC World, things seem to have settled down reasonably well, for example int is always 32 bits these days on PC's, at least those PC systems in which Ada-95 is likely to come into contact. --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---