Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Why We Use C Than C++...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="henryk.mueller, post: 2444452"] Well, the point is that you can do a lot more with C++ - if you want! I think kernel programming and embedded programming have a lot in common. If you come from, let's say PC application programming where speed and size of your code do not matter because your system has plenty of it, then you first need to learn to write lean C++ code - and to avoid some C++ features: - virtual functions - exceptions - rtti - templates (if your compiler is not able to) - a.s.o. Still, there are a lot of C++ features left that are worth using them in embedded environments. If you understand, what happens "behind the scenes" of your code, then C++ is very powerful even in embedded systems. I personally really like the beauty and robustness of a lean interface wrapper class that looks very sophisticated from the outside but actually contains only a lot of inline stuff that gets and sets some port registers... For my part, I think that plain C just looks ugly and is so damn old school... ;o) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Why We Use C Than C++...
Top