A tutorial on signed and unsigned integers

One of the interesting things about writing a blog is looking at the search terms that drive traffic to your blog. In my case, after I posted these thoughts on signed versus unsigned integers, I was amazed to see how many people were ending up here looking for basic information concerning signed and unsigned integers. In an […]

Read More

Efficient C Tips #10 – Use unsigned integers

This is the tenth in a series of tips on writing efficient C for embedded systems. Today I consider the topic of whether one should use signed integers or unsigned integers in order to produce faster code. Well the short answer is that unsigned integers nearly always produce faster code. Why is this you ask? Well there […]

Read More

Signed versus unsigned integers

If you are looking for some basic information on signed versus unsigned integers, you may also find this post useful. That being said, on to the original post… Jack Ganssle’s latest newsletter arrived the other day. Within it is an extensive set of comments from John Carter, in which he talks about and quotes from a book by Derek […]

Read More