Pristine Ack-5.5
[Ack-5.5.git] / mach / i86 / ncg / mach.h
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 #ifndef NORCSID
6 #define ID_MH           "$Id: mach.h,v 1.6 1994/06/24 13:00:06 ceriel Exp $"
7 #endif
8
9 #define ex_ap(y)        fprintf(codefile,".extern %s\n",y)
10 #define in_ap(y)        /* nothing */
11
12 #define newilb(x)       fprintf(codefile,"%s:\n",x)
13 #define newdlb(x)       fprintf(codefile,"%s:\n",x)
14 #define dlbdlb(x,y)     fprintf(codefile,"%s = %s\n",x,y)
15 #define newlbss(l,x)    fprintf(codefile,".comm %s,%u\n",l,x);
16
17 #define cst_fmt         "%d"
18 #define off_fmt         "%d"
19 #define ilb_fmt         "I%x_%d"
20 #define dlb_fmt         "I_%d"
21 #define hol_fmt         "hol%d"
22
23 #define hol_off         "%ld+hol%d"
24
25 #define con_cst(x)      fprintf(codefile,".data2\t%ld\n",x)
26 #define con_ilb(x)      fprintf(codefile,".data2\t%s\n",x)
27 #define con_dlb(x)      fprintf(codefile,".data2\t%s\n",x)
28
29 #define modhead         ".sect .text; .sect .rom; .sect .data; .sect .bss\n"
30
31 #define fmt_id(fr,to)   sprintf(to, "_%s", fr)
32
33 #define BSS_INIT        0