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.

Compiler: "Translating" project with PSP/BIOS from C to C++

Tool/software: TI C/C++ Compiler

Hello!

CCS 6.x is running on Windows 7 Pro 64-bit. I have a project written on C with PSP/BIOS drivers for Omap L138 based platform (it has both ARM9* and C674* cores).

My question: could I use these drivers with C++? And, if yes how can I "translate" my C program to C++?

I will be appreciated for any help

  • Artem Khotab said:
    I have a project written on C with PSP/BIOS drivers

    I have no particular knowledge of those drivers.

    Artem Khotab said:
    My question: could I use these drivers with C++?

    I'm sure you can.  Because you can combine C++ and C code in the same program.  

    The key is handling the name mangling.  For any function called from C++, but defined in C (whether the function is in your code, a library, or wherever), the C++ compiler needs to see the declaration of that function modified with extern "C".

    Thanks and regards,

    -George