Page 1 of 1

Chibios C or C++ for new project?

Posted: Fri Oct 09, 2015 6:22 pm
by Alexte
We are starting a new hobby project of a smart home. Question specialists. Is it possible to write in C++? Or is it better to write in a C language?
I used a long time to write in the C++. I'm used to classes and object-oriented programming. Should we abandon this?
I would like to hear those who writes on Chibios C++ languge.

Re: Chibios C or C++ for new project?

Posted: Fri Oct 09, 2015 7:18 pm
by Giovanni
Hi,

Both are possible, however efficient embedded C++ requires to drop things like exceptions and RTTI because space constraints.

BTW, ChibiOS uses concepts of OOP even if it is written in C: classes, objects, interfaces, inheritance. OOP is not matter of language.

Giovanni

Re: Chibios C or C++ for new project?

Posted: Sat Oct 10, 2015 8:56 am
by Alexte
Giovanni , thanks for the reply! We write in the ะก language.