www.delorie.com/archives/browse.cgi | search |
From: | Chris Frolik <frolikcc AT indy DOT net> |
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 |
Lines: | 17 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |