Homework 1

[33 syllabus]

Do homework problems 2.62, 2.72, 2.73, and 2.82 from Bryant & O'Hallaron 3rd edition, with the following additions:

Submit your homework answers as a gzipped tarball containing your answers to each problem, in the files hw1/2.62.c, hw1/2.72.txt, hw1/2.73.c, hw1/2.82.txt, and hw1/2.73-redo.c respectively. The .txt files should be plain ASCII text files with lines terminated by LF. The .c files should compile cleanly with shell commands like this:

gcc -m32 -fwrapv -O2 -Wall -Wextra -S hw1/2.73.c

As we will grade your submission with the latest version of GCC installed in /usr/local/cs/bin/ on the newer SEASnet GNU/Linux servers (lnxsrv06, lnxsrv07, and lnxsrv09), using the flags shown above, it would be wise to check your work on that platform. The shell command 'gcc --version' should output 'gcc (GCC) 7.2.0' or later.

To create your tarball, use the shell command:

tar -czf hw1.tar.gz hw1/2.62.c hw1/2.72.txt hw1/2.73.c hw1/2.82.txt hw1/2.73-redo.c

© 2016–2017 Paul Eggert. See copying rules.
$Id: hw1.html,v 1.3 2017/09/28 00:36:43 eggert Exp $