Technology, books, travel, and linguistics

Day: May 31, 2010

#all #misc

Basic GDB Tutorial

So, you believe there are bugs in your C/C++ code or you have encountered SEGFAULT while executing your code. What will you do? write a lot of printf statements at various places in your code under suspicion OR use gdb […]

#all #misc

GCC Hacks

A small list of GCC Hacks g++ -o helloworld produces helloworld binary from C++ file. use -Wall switch turns on all warnings(potential errors) in the code (like unused variables) g++ -E generates output code after the pre-processing […]