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.

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.

Views: 4058

Replies to This Discussion

I don't have any GDB exist for CS201-Intro to Programming
from whr did you people get this GDB ????

|waiting for your answer|

Mr Ali, announcement me chk karen its going to open 2mrw..

Announcement me hi question moujood hai...

kal aya ga GDB

tehreem sis itna ghor karty krty kahin hum gorr me hi na chaly jayen.... so pls koi 1 final kren.........

aap 1st mein yea likhoo ur in ke xplanation likhoo

  • familiarity
  • desired language features
  • specific libraries you want to use
  • performance requirements

yes i agree with this statement.C++ is still useful in embedded systems

C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.



then ishe aghe se xplain kr doe lkn copy paste na karna ur same wording bhi yaha se nhe lena.i surely you will rewarded 0 marks if u do this



i disagree with this statement bcoz there are many languages for developing softwares so why we are saying its optimal choice for C/C++..?

actually now a days mostly programmers prefer VB language for developing software..

so i think it is totally depends on the problem which we have and that languages we should to choice that is better for solving that problem ..

well mera point tu bs simply yehi hai k ..koi expectations nhi..or waisy b hum ne programming sikhi hai na k C/C++ bs syntax is ka use kiya language koi b ho bs problem pe depend krta hai or requirement pe ..

agr main wrong hun tu koi mujhy with solid reason mujhy correct kry..  

thanks for focus on my point..

no sunny plz read 1 more time the question of gdb

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

yea bola gaya hea question mein the question is specific about embedded programing and not general programing plz read question before ans .....


okay wot do u consider about embedded programming...?

tehreem...... ap ne itny solutions diye hain bt muje koi point clear nai hoa ap ne net se copy kr k paste kr dia hai.muje yhi samjh nai a rhi k ks point ko araise kia jaey   

which one is correct

comment deleted ..

how much material is required to submit in GDB? from marks point of  view


Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP


Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

Latest Activity

+ ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥ commented on + ! ! !★ "Areena"★✓'s video
2 minutes ago
+ Diamond Heart liked + ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥'s discussion اپنی تصویر کو آنکھوں سے لگاتا کیا ہے
22 minutes ago
匚卄ㄖ匚ㄥ卂ㄒㄚ 乃卂乃ㄚ updated their profile
49 minutes ago
+ ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥ liked + ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥'s discussion اپنی تصویر کو آنکھوں سے لگاتا کیا ہے
1 hour ago
+ ₱ɆⱤ₣Ɇ₵₮ ҉S҉M҉O҉K҉ER ⱫɆⱠⱠłsH ♥♥ posted a discussion
1 hour ago
Ammara Sabir posted a status
"اکیلے رہنا سیکھ چکی ہوں۔۔۔۔۔ اب من نہیں لگتا میرا محفلوں میں"
1 hour ago
Mani Siddiqui posted a status
"اُسے بچھڑنے کی جلدی تھی اور جلدی میں وہ اپنا آپ مِرے آس پاس بھول گیا"
1 hour ago
Mani Siddiqui posted a status
"کوئی تو ہو جو گھبرائے میری خاموشی سے ‏کسی کو تو سمجھ آئے میرے لہجے کا دکھ"
1 hour ago

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

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