This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C Vs C++

Hi,

 

We're starting a new embedded project using a C6455 and C6747.

 

Some parts of this project will be firmly rooted in C:

    * DSP/BIOS is C (headers need to be extern "C")

    * We will be generating code from MATLAB/Simulink/RTW which is basically C (although there is a C++ option which I think just sorts out the declarations)

    * The programmers here are C programmers and have no real C++ experience

 

Are there are disadvantages to making the source modules .cpp even if we don't write much code that is actually C++?

 

The only disadvantage that I can think of is that we might need a few 'extern "C"'s.

 

Could the compiler output be affected by compiling as C or C++?

 

Thanks,

Matt