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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,235855e3822c83d1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.7 with SMTP id we7mr4360628pbc.4.1336938901114; Sun, 13 May 2012 12:55:01 -0700 (PDT) Path: pr3ni22234pbb.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Importing C function with variable argument list Date: Sun, 13 May 2012 21:55:00 +0200 Organization: A noiseless patient Spider Message-ID: <87txzjq2jv.fsf@ludovic-brenta.org> References: <610ee323-4c7f-413d-8568-aed4955f5152@z38g2000vbu.googlegroups.com> <1288794.275.1334249936588.JavaMail.geo-discussion-forums@ynlp2> <696103.1385.1336076109161.JavaMail.geo-discussion-forums@vbez18> <3eduq7lqvgmp2ui5kt1k5pgk2oopvo9o31@4ax.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="sjYGIIjn6CRSU7MYuKQwIw"; logging-data="1310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MUZMbGc0sJ3v1EtAbaQrj" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:12Dv94KFyYcKVfyTLrxykai6pg0= sha1:AJQwVVJLpZWaVjZ7COBlZEM6uYo= Content-Type: text/plain; charset=us-ascii Date: 2012-05-13T21:55:00+02:00 List-Id: Jeffrey Carter writes on comp.lang.ada: > On 05/13/2012 11:20 AM, Simon Wright wrote: >> and although it is certainly true that there is nothing in the ARM >> that says that Integer'Size should be 32 the fact is that *on Mac OS >> X Lion* it very definitely is. >> >> Also on Debian 6 amd64. >> >> Now, the size of an 'access Integer' is 64 on both. > > No, they're not. > > Those may be the values for a specific compiler on those platforms, > but a specific compiler is not Ada. The way I understood Simon, he *was* talking about specific compilers on specific platforms. By "Ada" he really meant "the Ada front-end of GCC". > Nothing stops another compiler for those platforms from using other > values. Yes, the ABI does. Granted, a compiler may choose not to obey the ABI but then programs compiled with it will not be able to load any shared libraries not compiled with the same compiler. So, not obeying the ABI of the target platform would be really stupid. -- Ludovic Brenta.