mach.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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$"
  7. #endif
  8. #define ex_ap(y) fprintf(codefile,".extern %s\n",y)
  9. #define in_ap(y) /* nothing */
  10. #define newilb(x) fprintf(codefile,"%s:\n",x)
  11. #define newdlb(x) fprintf(codefile,"%s:\n",x)
  12. #define dlbdlb(x,y) fprintf(codefile,"%s = %s\n",x,y)
  13. #define newlbss(l,x) fprintf(codefile,".comm %s,%ld\n",l,x);
  14. #define cst_fmt "%ld"
  15. #define off_fmt "%ld"
  16. #define ilb_fmt "I%x_%d"
  17. #define dlb_fmt "I_%d"
  18. #define hol_fmt "hol%d"
  19. #define hol_off "%ld+hol%d"
  20. #define con_cst(x) fprintf(codefile,".data4\t%ld\n",x)
  21. #define con_ilb(x) fprintf(codefile,".data4\t%s\n",x)
  22. #define con_dlb(x) fprintf(codefile,".data4\t%s\n",x)
  23. #define modhead ".sect .text; .sect .rom; .sect .data; .sect .bss\n"
  24. #define fmt_id(fr,to) sprintf(to, "_%s", fr)
  25. #define BSS_INIT 0
  26. #define MACH_OPTIONS