- Subject: Re: What's faster ?
- From: "John E. Davis" <davis>
- Date: Mon, 6 Aug 2001 11:41:55 -0400
Richard van Zon <rvanzon@xxxxxxxxxxxx> wrote:
>I wonder what is faster/more efficient and how much the gap is between
>accessing the function arguments directly like
>
>int func(int *arg1,int *arg2)
>{
> printf("%d %d",*arg1,*arg2);
>}
>
>or with pops
>
>int func()
>{
> printf("%d %d",SLang_pop_integer(),SLang_pop_integer());
>}
For the last one, you mean:
(void) SLang_pop_integer (&x);
(void) SLang_pop_integer (&y);
printf("%d %d",x,y);
In any case, I do not think that you will be able to detect any
difference between the two functions.
--John
[2001 date index]
[2001 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]