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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no 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.219.66 with SMTP id pm2mr4749905pbc.8.1336956730603; Sun, 13 May 2012 17:52:10 -0700 (PDT) Path: pr3ni23024pbb.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Importing C function with variable argument list Date: Sun, 13 May 2012 17:52:06 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: 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> <87txzjq2jv.fsf@ludovic-brenta.org> NNTP-Posting-Host: 3d38a1258e49ed15ca039d3de8d282b5 Mime-Version: 1.0 X-Trace: 2c884a821a48da8e90b7155555264513 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <87txzjq2jv.fsf@ludovic-brenta.org> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=2c884a821a48da8e90b7155555264513 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-05-13T17:52:06-07:00 List-Id: On 05/13/2012 12:55 PM, Ludovic Brenta wrote: > > 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. Since the ABI is, to Ada, a set of non-Ada subprograms, it makes sense not to use predefined, convention-Ada types to interface to them, so the ABI should have no effect on the choice of size for Integer. Consider Janus/Ada, a compiler for Win32 (ABI uses 32-bits) with Integer'Size = 16. Maybe you think Brukardt is "really stupid", but I suspect the editor of the ARM has a better understanding of the language than either of us. -- Jeff Carter "Run away! Run away!" Monty Python and the Holy Grail 58