Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Topic is as follows:

 

For developing software for embedded systems, C/C++ is an optimal choice. Yes or NO? Support your answer with solid reasons.

Views: 392

Replies to This Discussion

Please Discuss here about this GDB.Thanks

Tariq bhai is gdb ke liye tu net se data serch kerna pare ga, koi word limit b nahi di hoi, kese kiya jaye??

hn! 

, C++ is still useful in embedded systems. As everyone else has said, that it still depends on the system itself, like 8-bit uC would probably be a no-no in my book even though there is a compiler out there and some people do it(shudder). [ There's still an advantage to using C++ even when you scale it down to something like "C+" even in a 8-bit micro world. What I mean by "C+", I mean don't use new/delete, avoid exceptions, avoid virtual classes with inheritance, possibly avoid inheritance all together, be very careful with templates, use inline functions instead of macros, and use const variables instead of #defines. I've been working both in C and C++ in embedded systems for well over a decade now, and some of my youthful enthusiasm for C++ has definitely worn off due to some real world problems that shake one's naivete. I have seen the worst of C++ in an embedded systems which I would like to refer to as "CS programmers gone wild in an EE world." In fact, that is something I'm working on with my client to improve this one codebase they have among others. The danger of C++ is because it's a very very powerful tool much like a two-edged sword that can cut both your arm and leg off if not educated and disciplined properly in it's language and general programming itself. C is more like a single-edged sword, but still just as sharp. With C++ it's too easy to get very high-levels of abstraction and create obfuscated interfaces that become meaningless in the long-term, and that's partly due to C++ flexibility in solving the same problem with many different language features(templates, OOP, procedural, RTTI, OOP+templates, overloading, inlining). I finished a two 4-hour seminars on Embedded Software in C++ by the C++ guru, Scott Meyers. He pointed out some things about templates that I never considered before and how much more they can help creating safety-critical code. The jist of it is, you can't have dead code in software that has to meet stringent safety-critical code requirements. Templates can help you accomplish this, since the compiler only creates the code it needs when instantiating templates. ] 

Debate over the most popular programming language can become an emotional, almost religious battle. And sometimes there?s no debate at all, such as when a developer is assigned to repair legacy software. [ ?It was written in COBOL?? is a popular refrain. A programming language is just one tool in a developer?s expansive collection of specialty software and hardware ] 

RSS

Looking For Something? Search Below

Top Trends 

Latest Activity

kashifali commented on + M.Tariq Malik's page Chit Chat Wall
10 hours ago
kashifali liked Momna Arshad's profile
10 hours ago
kashifali left a comment for Momna Arshad
10 hours ago
kashifali left a comment for jiya ali
10 hours ago
kashifali left a comment for jiya ali
10 hours ago
Golden Eye liked Black Bird Scientist's discussion graphic designer required
12 hours ago
Momna Arshad and +** KAKAR **+ are now friends
14 hours ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to Sophie's discussion Reference letter
23 hours ago

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service