We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

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.


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 4027

Replies to This Discussion

C/C++ is it low level language like assembly language??

C/C++ are low level whereas assembly is very low level. YES C/C++ can handle hardware.

In the end you should write your point of view. What impresses you and logical is correct. All the posts here are for ideas and they give you push to start. Once some statement makes sense, you can write more in your own words. Never copy... write in your own words and for sure you'll get marks

M.tariq cme and discuss about gdb...........

Yes, 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.

hhmmmmmmmmmmmmmmmmmm...........

•C not natural for such applications
•Various problems
–Events and states all modeled as variables
–Not natural for even oriented embedded applications
–States are implicit (control points decide the states)
–No abstract description possible
–Commitment to details at an early stage
–Too much of work when the design is likely to be discarded

Now to  question, there is no general yes or no. There are a lot reasons not using c++ on an embedded system. If the system is limited in ressource (RAM / FLASH / PERFORMANCE) than is C++ not an optimal choice since you will have an larger overhead than using plain C.

If your embedded plattform has enough resources the overhead of C++ is not important anymore and you gain the advantages of C++ (i.e. inheritance, encapsulation, ...).

some body else solion  of this gdb share on the following link. this is not fair ....

http://***************************

tahreem

Note: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

tahreem

Note: You don’t need to go any other site for this assignment/GDB/Online Quiz solution, Because All discussed data of our members in this discussion are going from here to other sites. You can judge this at other sites yourself. So don’t waste your precious time with different links.

kun i know all data of our members are going to other site from our site.. & kindly other site s ka link share karnay ki zaruat nai hai..kun k sab jantay han k data yahan say ja raha hai ..kisi or site pa members solution etc ya discuss nai kar rahay hutay han ..wahan k admins just yahan say hamaray members ka data copy kar k post kar rahay hutay han ..so dont be worry :-) 

RSS

Looking For Something? Search Below

Latest Activity

Ateeqa posted a discussion
1 hour ago
Fahad Shahid posted a discussion
1 hour ago
Fahad Shahid posted a status
"and can work on google sheets Anyone who wants to learn Accounting can Apply 03234613093"
1 hour ago
Fahad Shahid posted a status
"Online Work From Home Daily 2-3 Hours work Salary 3000/month Work: Accounts Management Best for Commerce Students Should know Accounts"
1 hour ago
Rabia liked Ammara Sabir's profile
1 hour ago
Rabia and muhammad saim are now friends
1 hour ago
Pɾιɳƈҽ PK commented on Ammara Sabir's status
6 hours ago
Pɾιɳƈҽ PK commented on Ammara Sabir's status
6 hours ago
Pɾιɳƈҽ PK commented on Ammara Sabir's status
6 hours ago
Pɾιɳƈҽ PK commented on Ammara Sabir's status
6 hours ago
Ammara Sabir posted a status
"Chlo ao kainat banntt lety hain,,,,,,,,,,,,,,,, sb kuch tmhara or tm bs mery"
9 hours ago
+ M.Tariq Malik liked + ! ! hคຖiค khคຖ ! ! ! +'s discussion 'Ghar Se Hum Ghar Talak Gaye Honge, Apne Hee Aap Tak Gaye Honge',
10 hours ago

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

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

.