Skip to main content
GameDev.net gamedev.net
🔒 Locked

Return value optimization support

Started by ArmitageIII87 Sep 2, 2005 at 12:44 AM 0 replies 450+ views
Original Post
ArmitageIII87
ArmitageIII87
Quick question, has anyone been able to prove whether or not return value optimization is taking place with the MSVC .NET 2003 compiler. I tried an example with full optimizations turned on and it appeared to not work. Has anyone else tried to verify this. I understand that this is a transformation GCC supports if I'm not mistaking. Thanks, Will
Polymorphic OOP
Polymorphic OOP
Yes, and it works -- it is even applied in debug mode. How exactly are you trying to test it?

Edit: I take that back! I could have sworn 7.1 performed the operation (8.0 does not seem to apply it either), but after testing it you are correct -- it is not applied. It doesn't have a problem with RVO, however.

Edit2: Wait, you did say RVO not NRVO, in which case yes, 7.1 does perform RVO. How are you trying to test it that makes you believe it is not applied? I am tired :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.