From a4ca3054f008bba459adc6f929ce10cc6f227615 Mon Sep 17 00:00:00 2001 From: em Date: Fri, 18 Jan 1985 15:36:51 +0000 Subject: [PATCH] Changed label generators and added fmt_id(). --- mach/vax4/cg/mach.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mach/vax4/cg/mach.h b/mach/vax4/cg/mach.h index 1e62f746d..20bdcaf6b 100644 --- a/mach/vax4/cg/mach.h +++ b/mach/vax4/cg/mach.h @@ -4,15 +4,18 @@ #define newilb(x) fprintf(codefile,"%s:\n",x) #define newdlb(x) fprintf(codefile,"%s:\n",x) +#define newplb(x) fprintf(codefile,".align 1\n%s:\n",x) #define dlbdlb(s1,s2) fprintf(codefile,"%s = %s\n",s1,s2) -#define newlbss(x,f) fprintf(codefile,"%s:.space\t%ld\n",x,f) +#define newlbss(x,f) fprintf(codefile,"%s:.lcomm\t%ld\n",x,f) #define cst_fmt "$%ld" #define off_fmt "%ld" -#define ilb_fmt "I%03x%04x" +#define ilb_fmt "L%xL%x" #define dlb_fmt "_%d" #define hol_fmt "hol%d" +#define fmt_id(fr,to) sprintf(to,"_%s",fr) + #define hol_off "%ld+hol%d" #define con_cst(w) fprintf(codefile,".long\t%ld\n",w) -- 2.34.1