Chouquette's blog

To content | To menu | To search

Tag - Visual studio

Entries feed - Comments feed

Thursday, September 18 2008

First steps in CUDA

I really want to throw myself in CUDA, so here I go. The first step will be to create a simple project, that runs under visual studio.

Continue reading...

Saturday, August 30 2008

Of debugging efficiency

Important part of the developpment process is "wasted" in debugging. The most used technique (or at least, the technique I most observed at school) is the good old printf technique, or for c++ programmers std::cout/cerr, but there are a few drawbacks with this technique :

  • You need to recompile your code
  • Both printf and std::cout are buffering the data you want to print, and in some case, it can hide your memory allocation bugs, and your code will run with the debug stuff, but will crash without.
  • It's hard to get some informations about which function called this one, or about the entire callstack
  • It's annoying to get the process id, but mostly the thread id, in case multithreaded program developpment.

But like every problem, there's a solution, that isn't used enough considering the advantages it offers.

In visual studio, a breakpoint isn't just about pausing the execution when reached, it's a lot more, and I invite you to read the following arcticle

Continue reading...