[2] | 1 | diff -ur orig/dinero/src/Makefile dinero/src/Makefile
|
---|
| 2 | --- orig/dinero/src/Makefile 1992-01-20 15:56:51.000000000 +0100
|
---|
| 3 | +++ dinero/src/Makefile 2007-12-22 17:36:25.000000000 +0100
|
---|
| 4 | @@ -1,3 +1,5 @@
|
---|
| 5 | +CFLAGS = -g
|
---|
| 6 | +
|
---|
| 7 | DEST = ../bin
|
---|
| 8 |
|
---|
| 9 | EXTHDRS = /usr/include/stdio.h
|
---|
| 10 | @@ -63,4 +65,4 @@
|
---|
| 11 | init.o: global.h /usr/include/stdio.h
|
---|
| 12 | main.o: global.h /usr/include/stdio.h
|
---|
| 13 | output.o: global.h /usr/include/stdio.h
|
---|
| 14 | -state.o: global.h /usr/include/stdio.h
|
---|
| 15 | +state.o: global.h
|
---|
| 16 | diff -ur orig/dinero/src/cmdargs.c dinero/src/cmdargs.c
|
---|
| 17 | --- orig/dinero/src/cmdargs.c 1989-07-07 21:17:24.000000000 +0200
|
---|
| 18 | +++ dinero/src/cmdargs.c 2007-12-22 17:37:55.000000000 +0100
|
---|
| 19 | @@ -33,6 +33,7 @@
|
---|
| 20 | */
|
---|
| 21 |
|
---|
| 22 | #include "global.h"
|
---|
| 23 | +#include <stdio.h>
|
---|
| 24 |
|
---|
| 25 | getcmdargs(argc,argv, /* Analyze command line arguments. */
|
---|
| 26 | cachep,policyp,ctrlp)
|
---|
| 27 | Binary files orig/dinero/src/cmdargs.o and dinero/src/cmdargs.o differ
|
---|
| 28 | Binary files orig/dinero/src/dinero and dinero/src/dinero differ
|
---|
| 29 | diff -ur orig/dinero/src/fetch.c dinero/src/fetch.c
|
---|
| 30 | --- orig/dinero/src/fetch.c 1989-07-07 21:17:25.000000000 +0200
|
---|
| 31 | +++ dinero/src/fetch.c 2007-12-22 17:38:12.000000000 +0100
|
---|
| 32 | @@ -33,6 +33,7 @@
|
---|
| 33 | */
|
---|
| 34 |
|
---|
| 35 | #include "global.h"
|
---|
| 36 | +#include <stdio.h>
|
---|
| 37 |
|
---|
| 38 | fetch( /* Get addr from input stream & decode*/
|
---|
| 39 | cachep,ctrlp,metricp,dap)
|
---|
| 40 | Binary files orig/dinero/src/fetch.o and dinero/src/fetch.o differ
|
---|
| 41 | diff -ur orig/dinero/src/global.h dinero/src/global.h
|
---|
| 42 | --- orig/dinero/src/global.h 1989-07-07 21:17:25.000000000 +0200
|
---|
| 43 | +++ dinero/src/global.h 2007-12-22 17:37:11.000000000 +0100
|
---|
| 44 | @@ -46,7 +46,7 @@
|
---|
| 45 | */
|
---|
| 46 | #define FAST_BUT_DANGEROUS_INPUT
|
---|
| 47 |
|
---|
| 48 | -#include <stdio.h>
|
---|
| 49 | +// #include <stdio.h>
|
---|
| 50 |
|
---|
| 51 | /*
|
---|
| 52 | ** Make global variables declarations just "extern" declarations
|
---|
| 53 | diff -ur orig/dinero/src/init.c dinero/src/init.c
|
---|
| 54 | --- orig/dinero/src/init.c 1989-07-07 21:17:26.000000000 +0200
|
---|
| 55 | +++ dinero/src/init.c 2007-12-22 17:38:24.000000000 +0100
|
---|
| 56 | @@ -33,6 +33,7 @@
|
---|
| 57 | */
|
---|
| 58 |
|
---|
| 59 | #include "global.h"
|
---|
| 60 | +#include <stdio.h>
|
---|
| 61 |
|
---|
| 62 | init(argc,argv, /* Initialize. */
|
---|
| 63 | cachep,policyp,ctrlp,metricp)
|
---|
| 64 | Binary files orig/dinero/src/init.o and dinero/src/init.o differ
|
---|
| 65 | Binary files orig/dinero/src/local.o and dinero/src/local.o differ
|
---|
| 66 | diff -ur orig/dinero/src/main.c dinero/src/main.c
|
---|
| 67 | --- orig/dinero/src/main.c 1989-07-07 21:17:27.000000000 +0200
|
---|
| 68 | +++ dinero/src/main.c 2007-12-22 17:38:49.000000000 +0100
|
---|
| 69 | @@ -34,6 +34,7 @@
|
---|
| 70 |
|
---|
| 71 | #define PUBLIC
|
---|
| 72 | #include "global.h"
|
---|
| 73 | +#include <stdio.h>
|
---|
| 74 |
|
---|
| 75 | main(argc,argv) /* Dinero III Cache Simulator (see doc.h). */
|
---|
| 76 | int argc; /* < */
|
---|
| 77 | Binary files orig/dinero/src/main.o and dinero/src/main.o differ
|
---|
| 78 | diff -ur orig/dinero/src/output.c dinero/src/output.c
|
---|
| 79 | --- orig/dinero/src/output.c 1989-07-07 21:17:27.000000000 +0200
|
---|
| 80 | +++ dinero/src/output.c 2007-12-22 17:39:05.000000000 +0100
|
---|
| 81 | @@ -33,6 +33,7 @@
|
---|
| 82 | */
|
---|
| 83 |
|
---|
| 84 | #include "global.h"
|
---|
| 85 | +#include <stdio.h>
|
---|
| 86 |
|
---|
| 87 | /*
|
---|
| 88 | ** Used so that "numerator / NONZERO(denomenator)" will
|
---|
| 89 | Binary files orig/dinero/src/output.o and dinero/src/output.o differ
|
---|
| 90 | diff -ur orig/dinero/src/state.c dinero/src/state.c
|
---|
| 91 | --- orig/dinero/src/state.c 1989-07-07 21:17:30.000000000 +0200
|
---|
| 92 | +++ dinero/src/state.c 2007-12-22 17:48:52.000000000 +0100
|
---|
| 93 | @@ -33,6 +33,8 @@
|
---|
| 94 | */
|
---|
| 95 |
|
---|
| 96 | #include "global.h"
|
---|
| 97 | +#include <stdlib.h>
|
---|
| 98 | +#include <stdio.h>
|
---|
| 99 |
|
---|
| 100 | update( /* Update */
|
---|
| 101 | cachep,policyp,ctrlp,metricp,dap)
|
---|
| 102 | @@ -300,7 +302,7 @@
|
---|
| 103 |
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 | -remove(preptr,ptr,stacknum) /* Remove node from a priority stack */
|
---|
| 107 | +nremove(preptr,ptr,stacknum) /* Remove node from a priority stack */
|
---|
| 108 | STACKNODETYPE *preptr; /* < ptr to node preceeding the one to be
|
---|
| 109 | removed */
|
---|
| 110 | STACKNODETYPE *ptr; /* < ptr to node to be removed */
|
---|
| 111 | @@ -496,7 +498,7 @@
|
---|
| 112 | static STACKNODETYPE *buffer;
|
---|
| 113 | extern int bufferindex; /* global index to buffer */
|
---|
| 114 | extern STACKNODETYPE freelist; /* List head for free list */
|
---|
| 115 | -extern char *calloc();
|
---|
| 116 | +//extern char *calloc();
|
---|
| 117 | extern int numnodes; /* Count on storage allocated */
|
---|
| 118 | STACKNODETYPE *ptr;
|
---|
| 119 | /*
|
---|
| 120 | Binary files orig/dinero/src/state.o and dinero/src/state.o differ
|
---|