From: Chris Frolik Newsgroups: comp.os.msdos.djgpp Subject: Re: Argument Passing Date: Tue, 22 Jul 1997 02:50:44 -0500 Organization: IndyNet - Indys Internet Gateway (info AT indy DOT net) Message-ID: <33D46654.7EB8@indy.net> References: <19970716 DOT 223813 DOT 7879 DOT 0 DOT chambers DOT ben AT juno DOT com> NNTP-Posting-Host: ip75-227.ts.indy.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 17 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Benjamin D Chambers wrote: > > If I were to write an assembly version of one of my functions, should I > assume the arguments are pushed, (in order), on the stack? ie: > int f(int oo, int bar); > I would first pop bar then oo? > > Thanx in advance. > > ..Chambers > > (PS About how many messages a day does the mailing list average now?) C (unlike Pascal) pushes parameters onto the stack from right to left, so bar would be pushed first, then oo. -Chris