Tag: C programming
-
Overflow in unsigned arithmetic in C
This came up in work recently – and I got a bit confused about it, so I thought it was worth writing it down in case someone like me needs to look it up. Let’s consider a real world example – we have a 16 bit counter that increments on every event X and which…
-
New lackeyml DTD
I cannot imagine that this matters to anyone other than me right now, but for the record (this is taken from a hacked up version of Valgrind‘s Lackey tool): Update: As originally published this code had an error in the name of the attribute for thread – I have fixed that now.
-
In continued praise of “Programming Pearls”
I have read two books in the last year that have fundamentally changed the way I think about computers and programming – The Annotated Turing and Programming Pearls. Programming Pearls in particular continues to inspire me in the way it makes you think about building better algorithms and using data structures better – and here’s…