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:17:18 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.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:17:17 +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> 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 1072934237 3763 62.49.62.197 (1 Jan 2004 05:17:17 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 1 Jan 2004 05:17:17 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:4008 Date: 2004-01-01T05:17:17+00:00 List-Id: On Wed, 31 Dec 2003 16:35:42 -0500, Hyman Rosen wrote: > On the contrary, using registers exacerbates these issues, since > there can never be enough registers to hold all possible arguments. > If you call a function with enough parameters, eventually there will > be too many to fit, and the remaining arguments will be passed on the > stack. The "stdarg.h" header is meant to be implementation magic; the > compiler knows all about the particular paramater passing scheme, and > will fix things up as needed to make it all work. Although you *can* have functions with the right number of arguments that fit to a small number of registers, but as time goes by, management dictates what is a good programming standard (these idiots know nothing and this is why we still have to deal with CPU's with a possible 4 available registers at any one point! On x86 crap anyways!) Plus the as the size of software (that hasn't been designed properly) grows the fact that the number of registers is reduced it true :-( Luke.