Realistic usage of the C99 ‘restrict’ keyword?
I was browsing through some documentation and questions/answers and saw it mentioned. I read a brief description, stating that it would be basically … Read more
I was browsing through some documentation and questions/answers and saw it mentioned. I read a brief description, stating that it would be basically … Read more
I’m working on a project that will read compiler error messages of a particular variety and do useful things with them. The sample … Read more
I’m trying to install Imagemagick on OSX Lion but something is not working as expected. -> brew install imagemagick /usr/local/git/bin/git ==> Cloning https://github.com/adamv/ImageMagick.git … Read more
I would like to enable — literally — ALL of the warnings that GCC has. (You’d think it would be easy…) You’d think … Read more
What would be the best way to write Objective-C on the Windows platform? Cygwin and gcc? Is there a way I can somehow … Read more
I have found an interesting performance regression in a small C++ snippet, when I enable C++11: #include <vector> struct Item { int a; … Read more
I have to define a 24-bit data type.I am using char[3] to represent the type. Can I typedef char[3] to type24? I tried … Read more
When I’m compiling openvswitch-1.5.0, I’ve encountered the following compile error: gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes … Read more
For instance: Bool NullFunc(const struct timespec *when, const char *who) { return TRUE; } In C++ I was able to put a /*…*/ … Read more
I’ve been reading about div and mul assembly operations, and I decided to see them in action by writing a simple program in … Read more