Is MISRA compliance worthwhile?

I had been planning on talking about MISRA C compliance in a month or two from now. However, in the comments section of my recent post about bitfields, Anand posed the following question: However I am writing to ask your opinion about MISRA C compliance. This is the first time a client company has asked us […]

Read More

Effective C Tip #6 – Creating a flags variable

This is the sixth in a series of tips on writing effective C. Today I’m going to address the topic of creating what I call a flags variable. A flags variable is nothing more than an integral type that I wish to treat as an array of bits, where each bit represents a flag or boolean value. […]

Read More