On 04/16/12 10:58, Bruce Korb wrote:
On 04/16/12 09:54, Bruce Korb wrote:
I suppose the motivation is performance?
If so, have you measured the improvement?
Actually, no, it is not for performance. I found it wearisome to write:
But curiosity got the better of me:
$ ./timer
strpbrk startup time: 0.000 run time: 31.081
macros startup time: 0.000 run time: 19.882
Optimized makes a bigger % difference:
$ gcc -O4 -g -o timer timer.c
$ ./timer
strpbrk startup time: 0.000 run time: 5.581
macros startup time: 0.000 run time: 2.439