Re: Returning complex object or using reference [out] parameter
- From: MrAsm <mrasm@xxxxxxx>
- Date: Mon, 05 Feb 2007 18:02:08 GMT
On Mon, 05 Feb 2007 12:42:39 -0500, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:
I was told about C++ RVO (Return Value Optimization), but it seems to****
me that RVO only applies to inline functions, and maybe for not very
complex output paramters.
I can't find anything by searching for 'RVO' in the MSDN, but this technology is easily 35
years old (we first implemented it in the Bliss-11 compiler at CMU, where in its simplest
form it becomes 'Value register targeting', but the extension is fairly obvious). I've
certainly seen it for simple values outside inline functions, but I don't know about its
use for complex values, although as a compiler writer I envision how it would be done.
Joe: about C++ RVO, I was directed by Google to this:
http://www.cs.cmu.edu/~gilpin/c++/performance.html
.
- Follow-Ups:
- Re: Returning complex object or using reference [out] parameter
- From: Joseph M . Newcomer
- Re: Returning complex object or using reference [out] parameter
- References:
- Returning complex object or using reference [out] parameter
- From: MrAsm
- Re: Returning complex object or using reference [out] parameter
- From: Joseph M . Newcomer
- Returning complex object or using reference [out] parameter
- Prev by Date: Re: sharing variables between dialog boxes
- Next by Date: Re: double is integer?
- Previous by thread: Re: Returning complex object or using reference [out] parameter
- Next by thread: Re: Returning complex object or using reference [out] parameter
- Index(es):