Pristine Ack-5.5
[Ack-5.5.git] / mach / vax4 / cg / 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 /* $Id: mach.h,v 1.10 1994/06/24 13:41:47 ceriel Exp $ */
6 #define ex_ap(x)        fprintf(codefile,".extern\t%s\n",x)
7 #define in_ap(x)        /* nothing */
8
9 #define newilb(x)       fprintf(codefile,"%s:\n",x)
10 #define newdlb(x)       fprintf(codefile,"%s:\n",x)
11 #define newplb(x)       fprintf(codefile,".align 1\n%s:\n",x)
12 #define dlbdlb(s1,s2)   fprintf(codefile,"%s = %s\n",s1, s2)
13 #define newlbss(l,x)    fprintf(codefile,".comm\t%s,%ld\n",l,x);
14
15 #define cst_fmt         "%ld"
16 #define off_fmt         "%ld"
17 #define ilb_fmt         "I%x_%x"
18 #define dlb_fmt         "I_%d"
19 #define hol_fmt         "hol%d"
20
21 #define fmt_id(fr,to)   sprintf(to,"_%s",fr)
22
23 #define hol_off         "%ld+hol%d"
24
25 #define con_cst(w)      fprintf(codefile,".data4\t%ld\n",w)
26 #define con_ilb(x)      fprintf(codefile,".data4\t%s\n",x)
27 #define con_dlb(x)      fprintf(codefile,".data4\t%s\n",x)
28
29 #define BSS_INIT        0
30 #define MACH_OPTIONS
31
32 #define modhead         ".sect .text\n.sect .rom\n.sect .data\n.sect .bss\n"