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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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.241.7 with SMTP id we7mr7574037pbc.4.1337028951569; Mon, 14 May 2012 13:55:51 -0700 (PDT) Path: pr3ni26202pbb.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: sbelmont700@gmail.com Newsgroups: comp.lang.ada Subject: Re: Importing C function with variable argument list Date: Mon, 14 May 2012 13:53:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <23643473.937.1337028832662.JavaMail.geo-discussion-forums@ynlm14> 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> NNTP-Posting-Host: 206.53.78.59 Mime-Version: 1.0 X-Trace: posting.google.com 1337028951 20210 127.0.0.1 (14 May 2012 20:55:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 14 May 2012 20:55:51 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.53.78.59; posting-account=ShYTIAoAAABytvcS76ZrG9GdaV-nXYKy User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-05-14T13:53:52-07:00 List-Id: On Monday, May 14, 2012 11:21:21 AM UTC-4, Natasha Kerensikova wrote: > > Why would it? > > When dealing with 3 consecutive byte arguments, I don't see any reason > to store them as int-sized values on the stack, on both i386-derived > platforms. > I doubt most compilers would misalign the stack to save a couple bytes of RAM, but i suppose anything is possible. Personally I have never seen this, but I would be interested in seeing an example. -sb