|
From: Dan P. <ba...@al...> - 2004-03-15 16:56:13
|
On Mar 15, Jim Ursetto wrote: > The fact that the return value optimization is not performed for > assignments, which is a property of C++ and not gcc-specific, is turning > out to be important. The following code [yes my brain is fried now] > shows the difference between "a = b * scalar", "a = b; a *= scalar", > and "Vector a = b * scalar". Just note the number of instructions. That's kind of depressing actually. :) What compiler version are you using for your tests? |