homeBlog | Tags | Archives | Projects | Stats | Contact

What exactly does GCC optimize?

Nov 07, 2007

2 comments
Popularity:

All compilers optimize code to some extent, some better than others. However, at least to me a great amount of the nature of the optimizations is unclear, outside the explicitly stated loop unrolling and like. Let’s find out which kind of programmer laziness and/or stupidity gets eliminated.

Read more...

-mthreads, -mthreads, -mthreads…

May 14, 2007

no comments
Popularity:

This falls in the obvious category but I’m posting this just that someone will see this even by accident: always use -mthreads when using threads under MinGW. I repeat (so that I remember this in future): always use -mthreads when using threads under MinGW. I just spent hours using gdb instead of -mthreads. I.e.: g++ [...]

Read more...

Automatic build numbers

Apr 29, 2007

no comments
Popularity:

I needed a program that would keep track of a single number, increase it on demand and output the number to the standard output. This is because I don’t really like using any IDEs (at least anything for MinGW) and so I don’t have all the modern luxuries like automatic build numbers (a sequential number [...]

Read more...