Lecture notes Friday 2/5/99
More on editing and compiling
- Compiling (inside emacs)
- M-X compile
- edit echo area to "gcc bug.c"
- watch lower window
- if you get error messages step thru' them with C-X ` and correct code
- to get back into one window mode, type C-x 1
- execute your program outside emacs (C-Z to put emacs to sleep, "fg" to wake it up)
- finding errors:
- in emacs: TAB key does indentation automatically
- with gcc: "gcc loop1.c -Wall"
- more on editing:
- C-k deletes from cursor to end of line
- C-y paste deleted text at current cursor position
- "M-x line-number-mode"
- access permissions
- "ls -l"
- "chmod u+rwx hello", g, o, a
- x for directory means access for cd
- homework
- fizz-buzz
- hw4.c as a starting point