Optimal code

Optimal code

Hands up who wants to write optimal code? If your hand is not up, it means that either you are…

How to run your code

How to run your code

What is involved in writing software? That is a rather broad question. I will start with considering the situation if…

Preincrement or postincrement?

Preincrement or postincrement?

As I have been using C for over 30 years, I am glad that it is still very popular among…

Many happy returns

Many happy returns

It is widely recognized that a very high priority for software developers is writing clear, understandable, and, hence, maintainable code….

Really well-tested software

Really well-tested software

Everybody writing software wants it to perform according to its specification and to be reliable. I hope that this is…

Instruction set simulation

Instruction set simulation

I enjoy hearing about other people’s lives and, hence, often read biographies. Just lately I have been reading about Bill…

Why not use bit fields for device registers?

Why not use bit fields for device registers?

A topic that I have touched upon before [here and here] is bit fields in C. They are facility in…

3 more embedded software tips

3 more embedded software tips

In my occasional series of tips for embedded software development, I have three more. This time they are all associated…

Programming language extensions

Programming language extensions

Embedded systems code is mostly written in C and C++. Other languages are gaining popularity, but these two are still…