Tom Browder wrote: > I see the new -fipa-sra option for gcc 4.5 and its explanation and > wonder how replacing an argument passed by reference with an argument > passed by value is an optimization (I assume something magic is going > on behind the scenes). Well... a pointer to an int on an x86-64 platform is 8 bytes on the stack instead of 4, and slower access to the contents of the int. If the int is never modified in the called function, passing a copy of the int on the stack instead is clearly a win. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kfleming@xxxxxxxxxx Check us out at www.digium.com & www.asterisk.org