1991-12-16 14:34:06 +00:00
|
|
|
/*#define DEBUG 1 /* define when debugging */
|
1991-09-20 18:14:05 +00:00
|
|
|
|
|
|
|
#define BYTES_REVERSED
|
|
|
|
#define WORDS_REVERSED
|
|
|
|
|
1994-10-25 16:14:08 +00:00
|
|
|
#ifndef WINDOWSIZE
|
|
|
|
#define WINDOWSIZE (16*4)
|
|
|
|
#endif
|
|
|
|
|
1991-09-20 18:14:05 +00:00
|
|
|
#define ONE_BYTE int
|
|
|
|
#define TWO_BYTES int
|
|
|
|
#define FOUR_BYTES long
|
|
|
|
|
|
|
|
#define EM_WSIZE 4
|
|
|
|
#define EM_PSIZE 4
|
|
|
|
#define EM_FSIZE 4
|
|
|
|
#define EM_DSIZE 8
|
|
|
|
#define EM_BSIZE REGSAV
|
|
|
|
|
|
|
|
#define BSS_INIT 0
|
|
|
|
|
1993-10-06 11:47:11 +00:00
|
|
|
#ifdef __solaris__
|
|
|
|
#define NAME_FMT "$%s"
|
|
|
|
#define DNAM_FMT "$%s"
|
|
|
|
#define DLB_FMT ".L_%ld"
|
|
|
|
#define ILB_FMT ".L%x_%lx"
|
|
|
|
#define GENLAB '.'
|
|
|
|
#else
|
1991-09-20 18:14:05 +00:00
|
|
|
#define NAME_FMT "_%s"
|
|
|
|
#define DNAM_FMT "_%s"
|
|
|
|
#define DLB_FMT "L_%ld"
|
|
|
|
#define ILB_FMT "L%x_%lx"
|
1993-10-06 11:47:11 +00:00
|
|
|
#define GENLAB 'L'
|
|
|
|
#endif
|
1991-09-20 18:14:05 +00:00
|
|
|
#define HOL_FMT "hol%d"
|
|
|
|
#define STR_FMT ".ascii\t"
|
|
|
|
|
|
|
|
|
|
|
|
#define ALIGN_FMT ".align 4\n"
|
|
|
|
|
|
|
|
#define BYTE_FMT ".byte %ld\n"
|
|
|
|
#define WORD_FMT ".half %ld\n"
|
|
|
|
#define LONG_FMT ".word %ld\n"
|
|
|
|
#define BSS_FMT ".skip %ld\n"
|
|
|
|
|
1993-09-30 15:11:52 +00:00
|
|
|
#ifdef __solaris__
|
|
|
|
#define SEGTXT_FMT ".section \".text\"\n"
|
|
|
|
#define SEGDAT_FMT ".section \".data\"\n"
|
|
|
|
#define SEGBSS_FMT ".section \".bss\"\n"
|
|
|
|
#else
|
1991-09-20 18:14:05 +00:00
|
|
|
#define SEGTXT_FMT ".seg \"text\"\n"
|
|
|
|
#define SEGDAT_FMT ".seg \"data\"\n"
|
|
|
|
#define SEGBSS_FMT ".seg \"bss\"\n"
|
1993-09-30 15:11:52 +00:00
|
|
|
#endif
|
1991-09-20 18:14:05 +00:00
|
|
|
|
|
|
|
#define SYMBOL_DEF_FMT "%s:\n"
|
|
|
|
#define GLOBAL_FMT ".global %s\n"
|
1993-10-06 11:47:11 +00:00
|
|
|
#ifdef __solaris__
|
|
|
|
#define COMM_FMT ".reserve %s, %ld, \".bss\"\n"
|
|
|
|
#else
|
1991-09-20 18:14:05 +00:00
|
|
|
#define COMM_FMT ".reserve %s, %ld, \"bss\"\n"
|
1993-10-06 11:47:11 +00:00
|
|
|
#endif
|
1991-09-20 18:14:05 +00:00
|
|
|
#define LOCAL_FMT ""
|
|
|
|
|
|
|
|
#define RELOC1_FMT "ONLY LONGS CAN BE RELOCATED!"
|
|
|
|
#define RELOC2_FMT "ONLY LONGS CAN BE RELOCATED!"
|
1993-10-06 11:47:11 +00:00
|
|
|
#ifdef __solaris__
|
|
|
|
#define RELOC4_FMT ".section \".data\"\n.align 4\n.word %s+%d\n"
|
|
|
|
#else
|
1991-09-20 18:14:05 +00:00
|
|
|
#define RELOC4_FMT ".seg \"data\"\n.align 4\n.word %s+%d\n"
|
1993-10-06 11:47:11 +00:00
|
|
|
#endif
|
1991-09-20 18:14:05 +00:00
|
|
|
|
|
|
|
#define ALIGN_GAP 4
|
|
|
|
#define FLOATTRANS 8
|
|
|
|
#define MAX_NR_FLT_REGS 16
|
|
|
|
#define FLTSAV (MAX_NR_FLT_REGS * 4)
|
|
|
|
#define FLTSAV_OFFSET (WINDOWSIZE + FLOATTRANS)
|
|
|
|
#define REGSAV (WINDOWSIZE + FLOATTRANS + ALIGN_GAP + FLTSAV)
|
|
|
|
|
1991-12-16 14:34:06 +00:00
|
|
|
/*#define MATH_DIVIDE 1 /* define when using mathematical def of / */
|
1991-09-20 18:14:05 +00:00
|
|
|
|
|
|
|
#ifndef DEBUG
|
1991-09-27 15:02:33 +00:00
|
|
|
#undef arg_error
|
1991-09-20 18:14:05 +00:00
|
|
|
#define arg_error(s,i)
|
1991-09-27 15:02:33 +00:00
|
|
|
#define RESOLV_debug 1
|
1991-09-20 18:14:05 +00:00
|
|
|
#endif
|