C Programming Tutorials and advice
CProgrammingTrends News Archives About Us Feedback

Recent Articles

Almost-Ready New C++ Standard Discussed
Has anyone else noticed how many of the movies released recently revolve around the future? "Star Trek," "Terminator," perhaps "Wolverine" considering some of the technology on display . . . . So, in keeping...

MoSync 2.0 Arrives To Help C/C++ Code Go Mobile
According to Google, Yahoo, Microsoft, and a host of other huge corporations, mobile is the future. At the same time, even these usually-strong companies...

Ada To C Conversion Tool Now Available
Ever try to translate something from a foreign language with which you're not too familiar? You wind up identifying a word at a time, and then it's often necessary to make guesses about tense and number before...

C++ Receives WSJ Recognition
It's not every day - or even every year - that C and C++ get any sort of mainstream recognition. A recent article that appeared on a Wall Street Journal blog named...

06.11.09

C++ Tips For Embedded Types


By Doug Caverly

Driving skills don't always translate from one type of competition to another. A top-notch rally driver might fail in F1, for example, or someone who's had luck in drag racing might not make the grade on Nascar's oval tracks. And the same sort of thing holds true when it comes to software, so Colin Walls wrote a guide to C++ specifically for embedded developers.

Walls listed five good ideas and five things embedded developers should avoid; we'll just try to hit a couple of highlights here. First, a simple but smart suggestion: "Understand how C++ actually works. . . . For example, if you think the two statements i++; and ++i; are always identical in C++, think again. (They yield the same result, but the postfix operator probably requires intermediate storage, so the prefix version may be more efficient.)"

Download Now

A driver would never just hop into an unfamiliar car and take off in an important race, after all.

Later, Walls pointed out, "Writing 'clever' code is never smart." The more complex something is, the more likely it is to go kaplooey. Plus, nobody likes a showoff. Heck, in car racing, this sort of behavior can end with braggarts getting spun off the track.

Finally, "It is not logical to avoid language features just because your tools do not handle them well." Instead, get better tools. You don't see racing teams quitting just because they lose an engine or two, right?

For other tips (that can less easily be treated as car analogies), don't forget to see Walls's original article.

About the Author:
Doug is a staff writer for WebProNews. Visit WebProNews for the latest eBusiness news.
About CProgrammingTrends
A collection of articles and tutorials designed to help C and C variant programmers in their programming work. C Programming Tutorials and advice





CProgrammingTrends is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITmanagmentNews.com





-- CProgrammingTrends is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2009 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal


archives | advertising info | news headlines | free newsletters | comments/feedback | submit article


CProgrammingTrends Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact