Re: Structure vs purism ?

Arvind Sankar (arvinds@mit.edu)
Fri, 22 Jan 1999 12:37:02 -0500


On Fri, Jan 22, 1999 at 02:23:13PM +0000, Mark Phillips wrote:
> In particular if complain_about_functX() is replaced with actual recovery
> code, or by a function with lots of arguments, you will end up cluttering
> the pipe with code which is unlikely to get executed. So moving the
> recovery to a function is good. Of course if the recovery requires local
> vars then a function will not work, so a goto works better (or using C++,
> if the vars required by the recovery are member vars, because then a
> recovery member function can see them...).

But a function call takes up at least two instructions and then a jump
if there are parameters, while a goto is a short jump, only two bytes.
So you're still cluttering up your prefetch queue.

-- arvind

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/