1 /* $Id: global.h,v 1.7 1994/06/24 10:30:02 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* G L O B A L V A R I A B L E S */
8 /* sizes of TARGET machine */
10 extern int ps; /* pointer size */
11 extern int ws; /* word size */
13 /* sizes of SOURCE machine (i.e. machine on which
17 /* number of bits in a byte */
21 #define DIVBL(a) ((a) >> 3)
22 #define MODBL(a) ((a) & (int)07)
24 #define DIVBL(a) (a/BYTELENGTH)
25 #define MODBL(a) (a%BYTELENGTH)
28 #define WORDLENGTH (sizeof(int)*BYTELENGTH)
30 #define DIVWL(a) (WORDLENGTH==16 ? \
34 ((a)/(8*(int)sizeof(int)))))
35 #define MODWL(a) (WORDLENGTH==16 ? \
39 ((a)%(8*(int)sizeof(int)))))
41 #define UNKNOWN_SIZE (-1)
43 extern proc_p curproc; /* current procedure */
45 extern char *filename; /* name of current input file */
47 extern lset mesregs; /* set of MES ms_reg pseudos */
49 extern short time_space_ratio; /* 0 if optimizing for space only,
50 * 100 if optimizing for time only,
51 * else something 'in between'.