www. O S N E W S .com
News Features Interviews
BlogContact Editorials

Learning C with GDB
By Thom Holwerda, submitted by MOS6510 on 2012-08-28 19:20:35
"Coming from a background in higher-level languages like Ruby, Scheme, or Haskell, learning C can be challenging. In addition to having to wrestle with C's lower-level features like manual memory management and pointers, you have to make do without a REPL. Once you get used to exploratory programming in a REPL, having to deal with the write-compile-run loop is a bit of a bummer. It occurred to me recently that I could use gdb as a pseudo-REPL for C. I've been experimenting with using gdb as a tool for learning C, rather than merely debugging C, and it's a lot of fun. My goal in this post is to show you that gdb is a great tool for learning C. I'll introduce you to a few of my favorite gdb commands, and then I'll demonstrate how you can use gdb to understand a notoriously tricky part of C: the difference between arrays and pointers."

22  Comments - Printer friendly - Related stories
Recent related stories
- AIDE v2 adds C/C++ support - 2013-05-18
- Android Studio early access preview - 2013-05-15
- Seven traits of effective programmers - 2013-05-05
- BlackBerry 10 API: worth your development time? - 2013-05-01
- A package manager for Xcode - 2013-04-24
- More related articles
 

Tell a friend
Your full name:
Your email address:
Your friend's email:
Anti-spam measure:
5+2=

News Features Interviews
BlogContact Editorials


WAP site - RSS feed
© OSNews LLC 1997-2007. All Rights Reserved.
The readers' comments are owned and a responsibility of whoever posted them.
Prefer the desktop version of OSNews?