Compiling and Using UNIX

Last time: Using X-Window and Editing Files

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Additional Credits

Introductions

Development Process

Explain the difference between compiling and linking. What do each of these steps do?

Makefiles

Note that the tabbed lines are identical to the earlier page. TAB is essential! Often a problem when cutting and pasting. What does make/Makefile actually do? Show dependencies and rules (could be multiple rule lines). Especially useful for larger programs with even more source files. Now what would you need to do if you wanted to add debugging? Or change compiler? Or add optimization?

Better Makefiles

make supports variables so we can use them to make future changes simpler. clean helps when you want to compile from scratch (e.g., after changing flags)

Compiling under Emacs

Using UNIX

info is a subset of emacs; info info to get started; man man; man is better than Google -- specific to your OS and installation

Looking Ahead