-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsect0065.html
81 lines (58 loc) · 3.28 KB
/
sect0065.html
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>: In conclusion ...</title>
<link href="sect0066.html" title="The File ‘prf.c’" rel="next" />
<link href="sect0064.html" title="mfree (2556)" rel="prev" />
<link href="sect0060.html" title="Two Files" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0064.html" title="mfree (2556)"><img alt="Previous: mfree (2556)" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0060.html" title="Two Files"><img alt="Up: Two Files" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0066.html" title="The File ‘prf.c’"><img alt="Next: The File ‘prf.c’" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center"> </td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
<div class="breadcrumbs">
<span>
<span>
<a href="index.html"></a> <b>:</b>
</span>
</span><span>
<span>
<a href="sect0060.html">Two Files</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">In conclusion ...</b>
</span>
</span>
<hr />
</div>
<div><h2 id="a0000000066">5.5 In conclusion ...</h2>
<p>The code for these two procedures has been written very tightly. There is little, if any, “fat” which could be removed to improve run time efficiency. However it would be possible to write these procedures in a more transparent fashion. </p><p>If you feel strongly on this point, then as an exercise, you should rewrite “mfree” to make its function more easily discernible. </p><p>Note also that the correct functioning of “malloc” and “mfree” depends on correct initialisation of “coremap” and “swapmap”. The code to do this occurs in the procedure “main” at lines 1568, 1583. </p></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0064.html" title="mfree (2556)"><img alt="Previous: mfree (2556)" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0060.html" title="Two Files"><img alt="Up: Two Files" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="sect0066.html" title="The File ‘prf.c’"><img alt="Next: The File ‘prf.c’" border="0" src="icons/next.gif" width="32" height="32" /></a></td>
<td class="navtitle" align="center"> </td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>
</body>
</html>