Path: chuka.playstation.co.uk!news From: Craig Graham Newsgroups: scea.yaroze.freetalk Subject: Re: Codewarrior works, GNU doesn't Date: Mon, 16 Mar 1998 17:49:18 +0000 Organization: Intelligent Research Lines: 27 Message-ID: <350D661D.5AFF90C0@intelligent-group.com> References: <6ejj42$c4a1@emeka.playstation.co.uk> NNTP-Posting-Host: 194.131.235.3 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; I) Lewis_Evans@Playstation.sony.com wrote: > by mail2.fw-sj.sony.com (8.8.8/8.8.8) with ESMTP id IAA16679 > for ; Mon, 16 Mar 1998 08:18:39 -0800 (PST) > From: Lewis_Evans@Playstation.sony.com > To: news@playstation.co.uk > > >PS why did you want to cut down on the number > >of parameters to functions? > I had read in a programming book that the use of global variables was > quicker than passing in variables to a function. What do you think? > Kevin > > on PSX, globals are probably slower; not a huge amount though. > Whichever platform it is (and hence whichever of globals and stack > are quicker), it's probably not a major difference. > > Lewis Parameters are quicker for 4 long sized parameters or less (as they go via registers), or if the stack is in cache. Otherwise globals are quicker. Craig.