How does one go about understanding GNU source code?

Posted by Max Dwayne on Stack Overflow See other posts from Stack Overflow or by Max Dwayne
Published on 2010-06-16T06:18:37Z Indexed on 2010/06/16 6:22 UTC
Read the original article Hit count: 313

Filed under:
|
|

I'm really sorry if this sounds kinda dumb. I just finished reading K&R and I worked on some of the exercises. This summer, for my project, I'm thinking of re-implementing a linux utility to expand my understanding of C further so I downloaded the source for GNU tar and sed as they both seem interesting. However, I'm having trouble understanding where it starts, where's the main implementation, where all the weird macros came from, etc.

I have a lot of time so that's not really an issue. Am I supposed to familiarize myself with the GNU toolchain (ie. make, binutils, ..) first in order to understand the programs? Or maybe I should start with something a bit smaller (if there's such a thing) ?

I have little bit of experience with Java, C++ and python if that matters.

Thanks!

© Stack Overflow or respective owner

Related posts about c

    Related posts about project