<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>C++ moving and returning objects part 1: object as return value (embedded friendly C++)</title><link>/technologies/code_exchange/b/blog/posts/c-moving-and-returning-objects-part-1-object-as-return-value</link><description>You may read guidelines that say: &amp;quot;never use an object as return value of a function. Because of performance reasons&amp;quot;. Because the object is copied into the receiving variable when returning from the function call. That was true in C++...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: C++ moving and returning objects part 1: object as return value (embedded friendly C++)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-moving-and-returning-objects-part-1-object-as-return-value</link><pubDate>Sat, 19 Jul 2025 22:20:01 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:684e25a9-bc5d-4f0b-b556-db49c963b664</guid><dc:creator>kmikemoo</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Good information.&amp;nbsp;[emoticon:1435ff2429184e17bc948e4f19178e1e]&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29081&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ moving and returning objects part 1: object as return value (embedded friendly C++)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-moving-and-returning-objects-part-1-object-as-return-value</link><pubDate>Sat, 19 Jul 2025 18:39:13 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:684e25a9-bc5d-4f0b-b556-db49c963b664</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice post Jan.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29081&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ moving and returning objects part 1: object as return value (embedded friendly C++)</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-moving-and-returning-objects-part-1-object-as-return-value</link><pubDate>Sat, 19 Jul 2025 14:15:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:684e25a9-bc5d-4f0b-b556-db49c963b664</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;m using this technique sparsely in a GPS&amp;nbsp;parser lib I wrote. Several developers that&amp;nbsp; wanted to use it, challenged performance because I sometimes return an object.&amp;nbsp;This post can help put some context to that question.&lt;/p&gt;
&lt;p&gt;What I learned while writing C++ libraries, is that not a lot of people challenge the functionality. Virtual any comment&amp;nbsp;is about the use of C++, STL, ...&amp;nbsp;As if we were in 1998.&lt;br /&gt;While there is a lot to gain for embedded designs. Embedded firmware is close to hardware. It&amp;#39;s an excellent candidate for object based designs.&lt;br /&gt;And&amp;nbsp;OO designs come cheap this days. For memory and clock ticks. A lot of times the execution cost is 0 bytes, 0 ticks. But it&amp;#39;s expensive for the designer community brain flex ...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=29081&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>