One return from a function: a good idea?

One return from a function: a good idea?

All C/C++ functions have a single point of entry and it is widely thought that a single point of exit…

Explaining variables

Explaining variables

I recently came across an excellent book: The Art of Readable Code by Dustin Boswell and Trevor Foucher. As soon…

Embedded software video blog about the C keyword static

Embedded software video blog about the C keyword static

My latest video blog is now available. I am talking about the C keyword static and its different, rather confusing,…

Writing portable/reusable code

Writing portable/reusable code

What are you priorities when writing code? Obviously you need to implement some specific functionality and there may be a…

Bitwise operations on device registers

Bitwise operations on device registers

A lot of embedded software is focused on the control of peripheral devices and this can present some interesting challenges….

Embedded software article: C++ exception handling

Embedded software article: C++ exception handling

My latest article at embedded.com has been published: C++ Exception Handling Exception handling in C++ is controversial among embedded software…

Take a break – the break statement in C

Take a break – the break statement in C

It is a given that structured programming – in one form or another – is a Good Thing. For years,…

Variable declarations in C – plenty of pitfalls

Variable declarations in C – plenty of pitfalls

It is widely felt that C is a very good language for embedded applications, as it is expressive, compact and…

Video blog: volatile keyword in embedded software

Video blog: volatile keyword in embedded software

My latest video blog is now available. I am talking about the volatile keyword in C/C++, which is of vital…