Mail Archives: djgpp/1996/05/13/06:18:49
>
>IMVHO, it's worth it for time critical sections of code in which a big portion
>of the time is spent accessing the stack, if there aren't a lot of params.
>I mean, if you're calling
>
>int RecursiveFunction(int),
>
>then it would be very worthwhile, especially if you're modifying the param as
>you go. Otherwise, you hae the overhead of saving the parameter each call.
>(Actually, that's from something I've been jiggling with).
>
Right! Append __attribute__ ((regparm(1))) to the end of declaration and
there you go. No need to recompile the whole library.
>On the other hand, if you're writing:
>
>char HugeBoWhoppingFunction (int, char*, float, float, ...)
>
>then register calling convention really isn't worth it.
>
Yup, that's why I love GCC, for its unbelieveable flexibility!
Martynas
- Raw text -