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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac02560f0af03a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-01 16:25:41 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!diablo.voicenet.com!rcn!feed3.news.rcn.net!not-for-mail Reply-To: "Frank J. Lhota" From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <3FEC43B2.5080606@noplace.com> <1072450300.440355@master.nyc.kbcfp.com> <3FEC4E89.2070804@noplace.com> <1072458199.346049@master.nyc.kbcfp.com> <3fec7c21$0$4764$61fed72c@news.rcn.com> <4iBIb.8173$qS3.498@nwrdny03.gnilink.net> <1072883131.278899@master.nyc.kbcfp.com> <1072891494.595791@master.nyc.kbcfp.com> <1072899508.453543@master.nyc.kbcfp.com> Subject: Re: GNAT parameter passing, C-style? Date: Thu, 1 Jan 2004 19:25:39 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <3ff4ba84$0$4765$61fed72c@news.rcn.com> NNTP-Posting-Host: 209.6.176.101 X-Trace: 1073003140 reader3.news.rcn.net 4765 209.6.176.101:1335 X-Complaints-To: abuse@rcn.com Xref: archiver1.google.com comp.lang.ada:4026 Date: 2004-01-01T19:25:39-05:00 List-Id: "Jano" wrote in message news:MPG.1a5e7497a07ca7709897ad@News.CIS.DFN.DE... > Frank J. Lhota dice... > > "Hyman Rosen" wrote in message > > news:1072899508.453543@master.nyc.kbcfp.com... > > > This is vanilla C for that platform. Varargs functions are called the > > > same way. The function itself will then muck about with the registers as > > > needed to make things work. > > > > Now I get it! The problem is that I have spent most of my career with the > > Intel architecture, where the paucity of registers preclude any extensive > > use of registers for parameter passing. Of course, passing parameters by > > registers avoids all of these issues, since nothing is pushed onto or popped > > off the stack. > > I remember from my days of assembler of some compiler which used > frequently the AX register for the first parameter and function results. > Though it was maybe a Pascal compiler %-) > > Just a curiosity. There is still a x86 convention that functions returning integers return them in AX / EAX.