<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3107/could-i-use-c-instead-of-c</link><description>Hi, 
 i have a generell question. First i have to say i am not the best programmer, but maybe some one with more experience then me could help me. 
 Does it make sense to use the C examples and port them in to C++ classes and use C++ instead of C? </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Feb 2016 15:19:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3107/could-i-use-c-instead-of-c" /><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11539?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2016 15:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4062fd9-18b6-4718-be20-484cfcdebfdf</guid><dc:creator>Ric</dc:creator><description>&lt;p&gt;Hi Nikita,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to use C++ for my project with Eclipse and GCC setup with Nordic SDK v10. Can you please help me do the setup. If you can share the some document with the setups followed to do the setup then it can be really helpful for many. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11543?ContentTypeID=1</link><pubDate>Sun, 07 Dec 2014 13:05:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ebbe14-7f66-4dca-85d8-588d7485f8c6</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Hi thanks, but i am already a github follower ^^ really nice project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11542?ContentTypeID=1</link><pubDate>Sun, 07 Dec 2014 13:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5287cf7-e724-4761-a05a-fc8345b5675f</guid><dc:creator>Jason</dc:creator><description>&lt;p&gt;Experiences our C++ RTOS framework for nRF51822.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/ucxpresso/nano51822"&gt;github.com/.../nano51822&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11541?ContentTypeID=1</link><pubDate>Tue, 15 Jul 2014 04:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e838a1bb-3258-49ba-bdf0-f81de40c4a64</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;Yes, that&amp;#39;s all you need to do.&lt;/p&gt;
&lt;p&gt;sys.c is to avoid linkage of exception handling and other BIG stuff like malloc and RTTI when using pure virtual functions. I get it from here: &lt;a href="http://electronix.ru/forum/index.php?showtopic=42167&amp;amp;view=findpost&amp;amp;p=643815"&gt;electronix.ru/.../index.php&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11540?ContentTypeID=1</link><pubDate>Mon, 14 Jul 2014 22:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afa61503-de39-4237-8b58-540f081c52a5</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your answers it is nice to hear that it should work to use C++ :)&lt;/p&gt;
&lt;p&gt;@ Nikita was this the only thing you had to do? Where did you get this file from?&lt;/p&gt;
&lt;p&gt;@ Torsten I think the same about readability for code as you. I am really not the best programmer, i learned C++ in study and then i had to do some C works for micro controllers but i really liked to see the OO coherence of stuff like i have it an real world and like i have it in a uC.&lt;/p&gt;
&lt;p&gt;I will talk to an programmer and think i will try it with eclipse + CDT first to see how it works to me. And i think it will be interesting to learn the new C++ features thanks for the info sheets i think it is time for a new book there are really big changes ^^.&lt;/p&gt;
&lt;p&gt;Best regards Nils&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11538?ContentTypeID=1</link><pubDate>Sun, 13 Jul 2014 19:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ca2dab-0fbd-47f4-ae6f-9f7332aec15c</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;I&amp;#39;m using C++ for my project with Eclipse+gcc. All you need to do to use C++ to write your app is to declare SDK includes and interrupt handlers as extern &amp;quot;C&amp;quot; {...}.&lt;/p&gt;
&lt;p&gt;And you need to add this file to your project:
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sys.c"&gt;sys.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could i use c++ instead of c?</title><link>https://devzone.nordicsemi.com/thread/11537?ContentTypeID=1</link><pubDate>Sun, 13 Jul 2014 11:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d3c2fc7-26bc-4f02-80cf-56a5677cae31</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;Hi Nils,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using C++ for decades now and I can&amp;#39;t see why C++ wouldn&amp;#39;t make sense to embedded software development. Not just for the OO support build into the language but especially for the new features coming with C++11 (Here a link to a talk from Rainer Grimm on the last years &lt;a href="http://www.meetingcpp.com/index.php/vortragsanzeige13/items/12.html"&gt;meetingcpp&lt;/a&gt;). SW development is about communicating a solution to a problem. And this solution must be readable not only to the compiler but to our selfs reading the software years later and to our colleagues. I think C++ provides better means to address this compared to C.  And C++ can be easily be used with C if you want to use SW written in C.&lt;/p&gt;
&lt;p&gt;You must be aware, that there are some features like exceptions and runtime type informations that you most likely don&amp;#39;t need but increase the code size a lot. But this features can be disabled in most compilers.&lt;/p&gt;
&lt;p&gt;Eclipse + CDT is for sure a good IDE but especially for embedded projects, I would go for a command line build using very common standard tools (make/cmake + gcc for example) and then adding an IDE on top of this. This gives you the guaranty, that you can build (and thus change) the software even in 10 years without the need to keep an old computer with the old OS where the old IDE is running on.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Torsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>