Quantcast
Channel: Efficient C/C++ – Barr Code
Browsing latest articles
Browse All 13 View Live

Upcoming Embedded Software Boot Camps

Earlier this week, Netrino announced the dates and locations for a pair of upcoming public sessions of the popular hands-on Embedded Software Boot Camp workshops.  The dates and locations will be as...

View Article


Image may be NSFW.
Clik here to view.

Embedded Software Boot Camp in a Box

Whether you are new to embedded software development in C or looking for ways to improve your skills, the Embedded Software Boot Camp in a Box will provide you the hands-on education you need....

View Article

Image may be NSFW.
Clik here to view.

Embedded Software Training in a Box

I am beaming with pride. I think we have finally achieved the holy grail of firmware training: Embedded Software Training in a Box. Priced at just $599, the kit includes...

View Article

Don’t Follow These 5 Dangerous Coding Standard Rules

Over the summer I happened across a brief blog post by another firmware developer in which he presented ten C coding rules for better embedded C code. I had an immediate strong negative reaction to...

View Article

Combining C’s volatile and const Keywords

Does it ever make sense to declare a variable in C or C++ as both volatile (i.e., “ever-changing”) and const (“read-only”)? If so, why? And how should you combine volatile and const properly? One of...

View Article


How to Combine Volatile with Struct

C’s volatile keyword is a qualifier that can be used to declare a variable in such a way that the compiler will never optimize away any of the reads and writes. Though there are several important types...

View Article

C’s goto Keyword: Should we Use It or Lose It?

In the 2008 and 2013 editions of my bug-killing Embedded C Coding Standard, I included this rule: Rule 1.7.c. The goto keyword shall not be used. Despite this coding standard being followed by about 1...

View Article
Browsing latest articles
Browse All 13 View Live