11.07.2015 Views

Parlante's Unix Programming Tools - Faculty.rmc.edu

Parlante's Unix Programming Tools - Faculty.rmc.edu

Parlante's Unix Programming Tools - Faculty.rmc.edu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Unix</strong><strong>Programming</strong><strong>Tools</strong>By Parlante, Zelenski, and many othersCopyright ©1998-99, Stanford UniversityIntroductionThis document explains the overall edit-compile-link-debug programming cycle andintroduces several common <strong>Unix</strong> programming tools— gcc, make, gdb, emacs, and the<strong>Unix</strong> shell. The goal is to describe the major features and typcial uses of the tools andshow how they fit together with enough detail for simple projects.ContentsIntroduction — the compile-link process 1The gcc compiler/linker 2The make project utility 4The gdb debugger 8The emacs editor 13Summary of <strong>Unix</strong> shell commands 15This is document #107, <strong>Unix</strong> <strong>Programming</strong> <strong>Tools</strong>, in the CS Education Library atStanford. This and other free <strong>edu</strong>cational materials are available athttp://cslibrary.stanford.<strong>edu</strong>/. This document is free to be used, reproduced, orredistributed so long as this notice is clearly reproduced at its beginning.This is a beta draftNote: this is basically a quick-n-dirty handout we've used to introduce CS students to the<strong>Unix</strong> programming environment. It has not been edited or improved especially beforebeing added to the CS Education Library. It may get edited and polished up sometime inthe future — in any case it will keep its permanent URL above. This is the first publicdraft of the document on Jan 26th, 1999. Please send suggestions or comments tonick.parlante@cs.stanford.<strong>edu</strong>.Other ResourcesThis document is an introduction — for more detailed information about a particular tool,see the tool's man pages and xinfo entries. Also, O'Reilly & Associates publishes apretty good set of references for many <strong>Unix</strong> related tools (the books with animal pictureson the cover). For basic coverage of the C programming language, see CS EducationLibrary #101, (http://cslibrary.stanford.<strong>edu</strong>/101/).The Compile ProcessBefore going into detail about the individual tools themselves, it is useful to review theoverall process that goes into building an executable program. After the source text fileshave been edited, there are two steps in the build process: compiling and linking. Each

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!