forked from Hansimov/csapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-shlab.txt
68 lines (50 loc) · 1.96 KB
/
README-shlab.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#####################################################################
# CS:APP Shell Lab
# Directions to Instructors
#
# Copyright (c) 2002, R. Bryant and D. O'Hallaron, All rights reserved.
# May not be used, modified, or copied without permission.
#
######################################################################
This directory contains the files that you will need to run the CS:APP
shell lab. The lab is the student's first experience with systems-level
programming, and teaches them about processes, process control, and
signals.
************
1. Overview
************
In this lab, students build a simple Unix shell with job control.
They are given a skeleton called tsh.c (Tiny Shell) that implements
some of the less interesting functions, and are then asked to
implement the functions and signal handlers that provide job control.
Students evaluate the functionality of their shells using a
trace-driven driver program called sdriver.pl.
The reference solution is in ./src/tsh.c
********
2. Files
********
README
grade/ Autograding scripts
shlab-handout/ Handout directory that is given to the students
src/ Trace-driven driver program
writeup/ Sample Latex lab writeup
*******************
3. Building the Lab
*******************
To build the lab, modify the Latex lab writeup in ./writeup/shlab.tex
for your environment. Then type the following in the current
directory:
unix> make clean
unix> make
The Makefile generates the driver code, formats the lab writeup, and
then copies the driver code to the shlab-handout directory. Finally,
it builds a tarfile of the shlab-handout directory (in
shlab-handout.tar) which you can distribute to students. The command:
unix> make dist DEST=<DIR>
will copy the tarfile and copies of the writeup to directory <DIR>,
where the students can access it.
**********************
4. Autograding the Lab
**********************
There is an autograding script that automatically grades the lab. See
./grade/README for instructions.