Re: Why Plan 9 C compilers don't have asm("")

Cort Dougan (cort@fsmlabs.com)
Wed, 4 Jul 2001 00:24:36 -0600


There isn't such a crippling difference between straight-line and code with
unconditional branches in it with modern processors. In fact, there's very
little measurable difference.

If you're looking for something to blame hurd performance on I'd suggest
the entire design of Mach, not inline asm vs procedure calls. Tossing a
few context switches into calls is a lot more expensive.

} > In other words, if you know the push sequence of your C compiler's
} > function calls, you don't need asm("");.
}
} You are very much forgetting _inline_ asm. And if you think that's
} unimportant for performance, well, as Al would say, go back playing
} with Hurd.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/