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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ac02560f0af03a21 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-31 21:20:09 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.bbnplanet.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: GNAT parameter passing, C-style? Date: Thu, 01 Jan 2004 05:20:08 +0000 Message-ID: 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> <1072906542.723974@master.nyc.kbcfp.com> <3ff38b16$0$4759$61fed72c@news.rcn.com> NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1072934408 3763 62.49.62.197 (1 Jan 2004 05:20:08 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 1 Jan 2004 05:20:08 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4009 Date: 2004-01-01T05:20:08+00:00 List-Id: On Wed, 31 Dec 2003 21:50:59 -0500, Frank J. Lhota wrote: > To be more precise, for functions with only a few arguments, these issues do > not arise. I am curious, however, as to how the Sun compiler handles > parameter lists long enough to exhaust available registers. My guess is that > those parameters not passed via registers are pushed on the stack in reverse > order, and are popped off by the calling function. > > I'm also curious as to how the Sun version of handles a > combination of register and stack parameters. I imagine that they must use > some implementation-specific extension to implement . This is interesting considering the SPARC's register windows (at any one point there is 32 register available to a function, FPU registers are not even considered). But as I remember, it's ther same again, if the registers run out the stack is used in reverse as usual. Luke.