This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

C++ in NRF9160

Hey,

I was wondering if I can write C++ code for the NRF9160:

  • Does the NRF9160 DK support C++?
  • Is SEGGER IDE compatible with it?
  • Is it recommended to use C++ in it?

Thanks in advance!

Tal

Parents
  • - The DK is a board.  You can program it with any language you want as long as there is a compiler supporting the Cortex-M33.  C, C++, Python, etc...

    - The Segger IDE does not properly supports C++.  Although it uses GCC, it stripped out most C++ support of GCC.  

    - C++ or not is a matter of tastes.  I use C++ mainly in any embedded project. There are a lot of advantage to it. You can use C++ without real object design as most people do.  Arduino, mBed are all C++.  C++ is not slower than C as many lead to believe.  It is the same performance.  Performance is directly related the coder himself.     

    C is a subset of C++.  Sample compiler for both.  Any well written C code are always and must be 100% compatible with C++.  If not, it is considered bad coding.

Reply
  • - The DK is a board.  You can program it with any language you want as long as there is a compiler supporting the Cortex-M33.  C, C++, Python, etc...

    - The Segger IDE does not properly supports C++.  Although it uses GCC, it stripped out most C++ support of GCC.  

    - C++ or not is a matter of tastes.  I use C++ mainly in any embedded project. There are a lot of advantage to it. You can use C++ without real object design as most people do.  Arduino, mBed are all C++.  C++ is not slower than C as many lead to believe.  It is the same performance.  Performance is directly related the coder himself.     

    C is a subset of C++.  Sample compiler for both.  Any well written C code are always and must be 100% compatible with C++.  If not, it is considered bad coding.

Children
No Data
Related