-
EMHOME=../../..
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# the next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTO
-
bo.o: ../share/alloc.h
bo.o: ../share/aux.h
bo.o: ../share/debug.h
bo.o: ../share/map.h
bo.o: ../share/put.h
bo.o: ../share/types.h
-bo.o: ../../../h/em_mnem.h
-bo.o: ../../../h/em_pseu.h
-bo.o: ../../../h/em_spec.h
#include <stdio.h>
+#include <em_mnem.h>
+#include <em_pseu.h>
+#include <em_spec.h>
+#include <em_flag.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/global.h"
#include "../share/aux.h"
#include "../share/def.h"
#include "../share/go.h"
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_flag.h"
extern char em_flag[];
-
EMHOME=../../..
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# the next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTO
-
ca.o: ../share/alloc.h
ca.o: ../share/debug.h
ca.o: ../share/files.h
ca.o: ../share/types.h
ca.o: ca.h
ca.o: ca_put.h
-ca_put.o: ../../../h/em_flag.h
-ca_put.o: ../../../h/em_mes.h
-ca_put.o: ../../../h/em_mnem.h
-ca_put.o: ../../../h/em_pseu.h
-ca_put.o: ../../../h/em_spec.h
ca_put.o: ../share/alloc.h
ca_put.o: ../share/debug.h
ca_put.o: ../share/def.h
#include <stdio.h>
+#include <em_pseu.h>
+#include <em_mes.h>
#include "../share/types.h"
#include "ca.h"
#include "../share/debug.h"
#include "../share/map.h"
#include "../share/alloc.h"
#include "../share/get.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_mes.h"
#include "ca_put.h"
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#include <stdio.h>
+#include <em_spec.h>
+#include <em_pseu.h>
+#include <em_mnem.h>
+#include <em_flag.h>
+#include <em_mes.h>
#include "../share/types.h"
#include "ca.h"
#include "../share/debug.h"
#include "../share/def.h"
#include "../share/map.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_flag.h"
-#include "../../../h/em_mes.h"
#include "../share/alloc.h"
#define outbyte(b) putc(b,outfile)
-
EMHOME=../../..
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# the next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTO
-cf.o: ../../../h/em_mnem.h
cf.o: ../share/alloc.h
cf.o: ../share/cset.h
cf.o: ../share/debug.h
+cf.o: ../share/def.h
cf.o: ../share/files.h
cf.o: ../share/get.h
cf.o: ../share/global.h
cf_idom.o: ../share/types.h
cf_idom.o: cf.h
cf_loop.o: ../share/alloc.h
+cf_loop.o: ../share/aux.h
cf_loop.o: ../share/debug.h
cf_loop.o: ../share/lset.h
cf_loop.o: ../share/types.h
cf_loop.o: cf.h
-cf_succ.o: ../../../h/em_flag.h
-cf_succ.o: ../../../h/em_mnem.h
-cf_succ.o: ../../../h/em_pseu.h
-cf_succ.o: ../../../h/em_spec.h
cf_succ.o: ../share/cset.h
cf_succ.o: ../share/debug.h
cf_succ.o: ../share/def.h
*/
#include <stdio.h>
+#include <em_mnem.h>
+#include <em_pseu.h>
+#include <em_spec.h>
+#include <em_flag.h>
+#include <em_mes.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/map.h"
#include "../share/cset.h"
#include "../share/get.h"
#include "../share/put.h"
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_flag.h"
-#include "../../../h/em_mes.h"
#include "../share/def.h"
#include "cf.h"
#include "cf_succ.h"
#include <stdio.h>
+#include <em_spec.h>
+#include <em_pseu.h>
+#include <em_flag.h>
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/def.h"
#include "../share/debug.h"
#include "../share/global.h"
#include "../share/lset.h"
#include "../share/cset.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_flag.h"
-#include "../../../h/em_mnem.h"
#include "cf.h"
#include "../share/map.h"
-
EMHOME=../../..
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# the next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTO
-
-cj.o: ../../../h/em_mnem.h
-cj.o: ../../../h/em_spec.h
cj.o: ../share/alloc.h
cj.o: ../share/aux.h
cj.o: ../share/debug.h
*/
#include <stdio.h>
+#include <em_mnem.h>
+#include <em_spec.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/global.h"
#include "../share/def.h"
#include "../share/stack_chg.h"
#include "../share/go.h"
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_spec.h"
/* Cross jumping performs optimzations like:
-
EMHOME=../../..
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# AUTOAUTOAUTOAUTOAUTOAUTO
cs.o: ../share/debug.h
cs.o: ../share/go.h
+cs.o: ../share/lset.h
cs.o: ../share/types.h
cs.o: cs.h
cs.o: cs_aux.h
cs_aux.o: ../share/types.h
cs_aux.o: cs.h
cs_aux.o: cs_entity.h
-cs_avail.o: ../../../h/em_mnem.h
cs_avail.o: ../share/aux.h
cs_avail.o: ../share/debug.h
cs_avail.o: ../share/global.h
cs_avail.o: cs.h
cs_avail.o: cs_alloc.h
cs_avail.o: cs_aux.h
+cs_avail.o: cs_debug.h
cs_avail.o: cs_getent.h
-cs_debug.o: ../../../h/em_spec.h
cs_debug.o: ../share/debug.h
cs_debug.o: ../share/lset.h
cs_debug.o: ../share/types.h
cs_debug.o: cs_aux.h
cs_debug.o: cs_avail.h
cs_debug.o: cs_entity.h
-cs_elim.o: ../../../h/em_mnem.h
-cs_elim.o: ../../../h/em_reg.h
cs_elim.o: ../share/alloc.h
cs_elim.o: ../share/aux.h
cs_elim.o: ../share/debug.h
cs_entity.o: ../share/lset.h
cs_entity.o: ../share/types.h
cs_entity.o: cs.h
+cs_entity.o: cs_alloc.h
cs_entity.o: cs_aux.h
-cs_getent.o: ../../../h/em_mnem.h
cs_getent.o: ../share/aux.h
cs_getent.o: ../share/debug.h
cs_getent.o: ../share/global.h
cs_getent.o: cs_aux.h
cs_getent.o: cs_entity.h
cs_getent.o: cs_stack.h
-cs_kill.o: ../../../h/em_mnem.h
cs_kill.o: ../share/aux.h
cs_kill.o: ../share/cset.h
cs_kill.o: ../share/debug.h
cs_kill.o: ../share/global.h
cs_kill.o: ../share/lset.h
+cs_kill.o: ../share/map.h
cs_kill.o: ../share/types.h
cs_kill.o: cs.h
cs_kill.o: cs_aux.h
cs_kill.o: cs_avail.h
cs_kill.o: cs_debug.h
cs_kill.o: cs_entity.h
-cs_partit.o: ../../../h/em_mnem.h
-cs_partit.o: ../../../h/em_pseu.h
-cs_partit.o: ../../../h/em_reg.h
-cs_partit.o: ../../../h/em_spec.h
cs_partit.o: ../share/aux.h
cs_partit.o: ../share/debug.h
cs_partit.o: ../share/global.h
cs_partit.o: ../share/types.h
cs_partit.o: cs.h
cs_partit.o: cs_stack.h
-cs_profit.o: ../../../h/em_mnem.h
-cs_profit.o: ../../../h/em_spec.h
cs_profit.o: ../share/aux.h
cs_profit.o: ../share/cset.h
cs_profit.o: ../share/debug.h
cs_profit.o: cs.h
cs_profit.o: cs_aux.h
cs_profit.o: cs_avail.h
+cs_profit.o: cs_debug.h
cs_profit.o: cs_partit.h
cs_stack.o: ../share/aux.h
cs_stack.o: ../share/debug.h
cs_stack.o: ../share/types.h
cs_stack.o: cs.h
cs_stack.o: cs_aux.h
-cs_valno.o: ../share/debug.h
-cs_valno.o: ../share/types.h
-cs_valno.o: cs.h
-cs_vnm.o: ../../../h/em_mnem.h
cs_vnm.o: ../share/aux.h
cs_vnm.o: ../share/debug.h
cs_vnm.o: ../share/global.h
* O F A V A I L A B L E E X P R E S S I O N S
*/
-#include "../../../h/em_mnem.h"
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/aux.h"
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#include <stdio.h>
-#include "../../../h/em_spec.h"
+#include <em_spec.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/lset.h"
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
-#include "../../../h/em_reg.h"
-#include "../../../h/em_mnem.h"
+#include <em_reg.h>
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/alloc.h"
#include "../share/lset.h"
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
-#include "../../../h/em_mnem.h"
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/aux.h"
#include "../share/debug.h"
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
-#include "../../../h/em_mnem.h"
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/global.h"
*/
/* Functions to partition the huge set of EM-instructions. */
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_reg.h"
-#include "../../../h/em_spec.h"
+#include <em_mnem.h>
+#include <em_pseu.h>
+#include <em_reg.h>
+#include <em_spec.h>
#include "../share/types.h"
#include "../share/aux.h"
#include "../share/debug.h"
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#include <stdio.h>
-#include "../../../h/em_mnem.h"
-#include "../../../h/em_spec.h"
+#include <em_mnem.h>
+#include <em_spec.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/global.h"
/* V A L U E N U M B E R I N G M E T H O D */
-#include "../../../h/em_mnem.h"
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/global.h"
#include "../share/debug.h"
CPP=$(EMLIB)/cpp
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
default -> (0,0)
general,pointer
(1 size)
- default -> (2,2)
+ default -> (1,2)
constant:
(3 sizes)
in_0_8 -> (-1,-1)
default -> (-1,-1)
address of global variable:
(1 size)
- default -> (4,4)
+ default -> (1,4)
address of procedure:
(1 size)
- default -> (4,4)
+ default -> (1,4)
opening cost parameters:
local variable:
default -> (6,3)
general,general
(1 size)
- default -> (4,2)
+ default -> (1,2)
address of local variable:
(2 cases)
pointer,pointer
default -> (-1,-1)
address of global variable:
(1 size)
- default -> (4,4)
+ default -> (1,4)
address of procedure:
(1 size)
- default -> (2,4)
+ default -> (1,4)
opening cost parameters:
local variable:
general -> (4,2)
constant:
(1 size)
- default -> (4,4)
+ default -> (1000,1000)
double constant:
(1 size)
default -> (1000,1000)
default -> (6,4)
general,general
(1 size)
- default -> (4,2)
+ default -> (1,2)
address of local variable:
(2 cases)
pointer,pointer
default -> (-1,-1)
address of global variable:
(1 size)
- default -> (4,4)
+ default -> (1,4)
address of procedure:
(1 size)
- default -> (4,4)
+ default -> (1,4)
opening cost parameters:
local variable:
extern char *strcpy(), *strcat();
extern char *strrindex();
-static char ddump[128]; /* data label dump file */
-static char pdump[128]; /* procedure name dump file */
-static char tmpbufs[NTEMPS*2][128];
+static char ddump[128] = TMP_DIR; /* data label dump file */
+static char pdump[128] = TMP_DIR; /* procedure name dump file */
+static char tmpbufs[NTEMPS*2][128] = {
+ TMP_DIR
+};
static int O2phases[] = { /* Passes for -O2 */
CJ, BO, SP, 0
static char *opt_dir;
static char *prog_name;
-static char *tmp_dir = TMP_DIR;
static void
cleanup()
case 't':
if (argv[0][2] == '\0') {
keeptemps = 1;
- tmp_dir = ".";
- continue;
+ /* no continue; IL also needs this */
}
break;
case 'O':
case 'I':
if (! strcmp(&argv[0][1], "IL")) {
add_uphase(IL);
+ add_uphase(CF);
continue;
}
break;
fatal("no correct -P flag given");
}
- (void) strcpy(ddump, tmp_dir);
+ if (keeptemps) {
+ (void) strcpy(ddump, ".");
+ (void) strcpy(pdump, ".");
+ (void) strcpy(tmpbufs[0], ".");
+ }
(void) strcat(ddump, "/ego.dd.XXXXXX");
(void) mktemp(ddump);
- (void) strcpy(pdump, tmp_dir);
(void) strcat(pdump, "/ego.pd.XXXXXX");
(void) mktemp(pdump);
- (void) strcpy(tmpbufs[0], tmp_dir);
(void) strcat(tmpbufs[0], "/ego.A.BB.XXXXXX");
(void) mktemp(tmpbufs[0]);
for (i = 2*NTEMPS-1; i >= 1; i--) {
EMH=$(EMHOME)/h
EMLIB=$(EMHOME)/lib
SHR=../share
+
LDFLAGS=
-CPPFLAGS=-DVERBOSE -DNOTCOMPACT
+CPPFLAGS=-DVERBOSE -DNOTCOMPACT -I$(EMH)
CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-hbu
# the next lines are generated automatically
# AUTOAUTOAUTOAUTOAUTOAUTO
-ic.o: ../../../h/em_flag.h
-ic.o: ../../../h/em_mes.h
-ic.o: ../../../h/em_pseu.h
-ic.o: ../../../h/em_spec.h
ic.o: ../share/alloc.h
ic.o: ../share/aux.h
ic.o: ../share/debug.h
ic.o: ic_io.h
ic.o: ic_lib.h
ic.o: ic_lookup.h
-ic_aux.o: ../../../h/em_mnem.h
-ic_aux.o: ../../../h/em_pseu.h
-ic_aux.o: ../../../h/em_spec.h
ic_aux.o: ../share/alloc.h
ic_aux.o: ../share/aux.h
ic_aux.o: ../share/debug.h
ic_aux.o: ic_aux.h
ic_aux.o: ic_io.h
ic_aux.o: ic_lookup.h
-ic_io.o: ../../../h/em_pseu.h
-ic_io.o: ../../../h/em_spec.h
ic_io.o: ../share/alloc.h
ic_io.o: ../share/debug.h
ic_io.o: ../share/types.h
ic_io.o: ic.h
ic_io.o: ic_io.h
ic_io.o: ic_lookup.h
-ic_lib.o: ../../../h/em_mes.h
-ic_lib.o: ../../../h/em_pseu.h
-ic_lib.o: ../../../h/em_spec.h
ic_lib.o: ../share/debug.h
ic_lib.o: ../share/files.h
ic_lib.o: ../share/global.h
ic_lib.o: ic_io.h
ic_lib.o: ic_lib.h
ic_lib.o: ic_lookup.h
-ic_lookup.o: ../../../h/em_spec.h
ic_lookup.o: ../share/alloc.h
ic_lookup.o: ../share/debug.h
ic_lookup.o: ../share/map.h
*/
#include <stdio.h>
+#include <em_spec.h>
+#include <em_pseu.h>
+#include <em_flag.h>
+#include <em_mes.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/def.h"
#include "../share/map.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_flag.h"
-#include "../../../h/em_mes.h"
#include "ic.h"
#include "ic_lookup.h"
#include "ic_aux.h"
+#include <em_pseu.h>
+#include <em_spec.h>
+#include <em_mnem.h>
#include "../share/types.h"
#include "../share/global.h"
#include "../share/debug.h"
#include "../share/def.h"
#include "../share/aux.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_mnem.h"
#include "ic.h"
#include "ic_io.h"
#include "ic_lookup.h"
#include <stdio.h>
+#include <em_pseu.h>
+#include <em_spec.h>
+#include <arch.h>
#include "../share/types.h"
#include "../share/debug.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/arch.h"
#include "ic.h"
#include "ic_lookup.h"
#include "../share/alloc.h"
#include <stdio.h>
+#include <em_spec.h>
+#include <em_pseu.h>
+#include <em_mes.h>
+#include <arch.h>
#include "../share/types.h"
#include "../share/debug.h"
-#include "../../../h/em_spec.h"
-#include "../../../h/em_pseu.h"
-#include "../../../h/em_mes.h"
-#include "../../../h/arch.h"
#include "ic.h"
#include "ic_lookup.h"
#include "ic_io.h"
#include <stdio.h>
+#include <em_spec.h>
#include "../share/types.h"
#include "../share/debug.h"
#include "../share/map.h"
-#include "../../../h/em_spec.h"
#include "ic.h"
#include "ic_lookup.h"
#include "../share/alloc.h"