Messages in this thread | | | Date | Fri, 29 Oct 2004 23:35:25 -0400 | From | Jeff Garzik <> | Subject | Re: Semaphore assembly-code bug |
| |
Linus Torvalds wrote: > Anyway, it's quite likely that for several CPU's the fastest sequence ends > up actually being > > movl 4(%esp),%ecx > movl 8(%esp),%edx > movl 12(%esp),%eax > addl $16,%esp > > which is also one of the biggest alternatives.
That's how I'm coding the sparse "compiler backend"... the mov's and add's tend to be tiny instructions (i-cache friendly), and you can often issue a bunch of them through multiple pipes/ports.
Jeff
- 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/
| |