No, Anthony, you cannot answer how much performance is gained by using
the MEMSET macro simply by looking at the assembler output.
Especially not with such a contrived example.
What you *can* do, however, is use "make perf" and look at the
performance comparison between gcc/glibc memset() and liba
In regards to bug 157084, I can answer how much performance the MEMSET
macro gains you:
[EMAIL PROTECTED]:test-memset$ cat test-memset.c
#include
int set(char *x) {
memset(x, 0, 10);
}
int main() {
char buf[10];
set(buf);
}
[EMAIL PROTECTED]:test-memset$ gcc -O2 -c test
2 matches
Mail list logo