3 ms·
I do see your point and I found it interesting (I've had to optimize filters in the past and used the same process of coding C and looking at the assembly), but
by ramchip 16y ago
I do see your point and I found it interesting (I've had to optimize filters in the past and used the same process of coding C and looking at the assembly), but how can "beating the compiler" be interpreted as anything but writing better code than the compiler?
- Retric 16y agoWriting optimized code generally involves looking at larger sections of the problem / code base and picking a different approach based on global conditions. So, when you and the compiler are booth looking at the same code base, but you find a better local approach based on a global condition you have beaten the compiler. Even if all you did was tell it about that condition.