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.191.225 with SMTP id hb1mr4673536pbc.5.1336953503759; Sun, 13 May 2012 16:58:23 -0700 (PDT) Path: pr3ni22868pbb.0!nntp.google.com!news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 14 May 2012 01:57:51 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Importing C function with variable argument list 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> In-Reply-To: Message-ID: <4fb04a80$0$6643$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 14 May 2012 01:57:52 CEST NNTP-Posting-Host: f8c8f7e6.newsspool2.arcor-online.net X-Trace: DXC=\HTn^2j:g20^8FBo0_81f>A9EHlD;3Yc24Fo<]lROoR18kF:Lh>_cHTX3j=PBR<2jJlM74 X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-05-14T01:57:52+02:00 List-Id: On 13.05.12 23:12, Simon Wright wrote: > Jeffrey Carter writes: > >> Nothing stops another compiler for those platforms from using other >> values. > > No, but there isn't one for the Mac, where I started. And it seems very > unlikely (for the Mac, at any rate) that anyone will produce another. I'll speculate that SofCheck's AdaMagic (emitting C or C++) is available in some form for Macs. (A picture shows one of its authors with a Mac in front of him.) And it likely has Integer'Size >= 32. But see below. > And since Interfaces.C.int'Size needs to be 32, you'd have to have a > very good reason to make a different choice for Integer, no? I understand that Janus/Ada produces 32 bit executables for Win32, but that its Integer'Size = 16. What size of int does the Windows ABI suggest?