Archive for June 16th, 2006

Optimiser bug in GCC 4.0.4

Q: When is (i != 0) equivalent to

((i >= 0) && ((i >= -1073741824) && (i < 1073741824)))

?

A: When GCC 4.0.4’s -O, -O1, -O2 or -O3 is used on it.

See GCC bug 28042. Particularly interesting is that removing the redundant set of parentheses around the second && avoids the optimiser bug.

Add comment June 16th, 2006 tonyg

Image-for-text substitution

Print envy is typically satisfied by producing pictures of text in the desired font with the desired special effects. Now it’s trendy to pay attention to standards and accessibility guidelines, however, it’s become clear that this approach is inadequate.

Continue Reading Add comment June 16th, 2006 mikeb

Calendar

June 2006
M T W T F S S
« May   Jul »
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category