7
#define HAVE_AOUT <a.out.h>
9
/* make the default allocated relblock suitable for pointer alignment */
11
#define USE_PARI_MULLL
13
/* #define PLONG_IS_64BIT */
16
#undef NUMBER_OPEN_FILES
17
#define NUMBER_OPEN_FILES getdtablesize()
20
#define ADDITIONAL_FEATURES \
21
ADD_FEATURE("MIPS") ; ADD_FEATURE("DLOPEN"); \
22
ADD_FEATURE("LD-NOT-ACCEPT-DATA") ; \
23
ADD_FEATURE("POINTER-BIGGER-INT") ; \
24
ADD_FEATURE("EXPECT-UNRESOLVED")
26
/* we dont tack on the data file but rather use it */
27
#define SEEK_TO_END_OFILE(x) fseek(x,0,2)
31
The system defines this
35
/* The exponent and most signif are in the second word for doubles */
39
#define FILECPY_HEADER \
40
filecpy(save, original, header.a_text);
43
/* text relocated; data is page-aligned after the text */
44
#define DATA_BEGIN (char *)((TXTRELOC+header.a_text+(PAGSIZ-1)) & ~(PAGSIZ-1))
49
#undef SET_REAL_MAXPAGE
50
#define SET_REAL_MAXPAGE real_maxpage = MAXPAGE
52
#define RELOC_FILE "rel_coff.c"
76
/* #define DBEGIN 0x12000000 */
77
#define TBEGIN 0x10000000
80
/* #define INT_TO_ADDRESS(x) ((long) x ? (object) (0x100000000 | (long) x) : (object )0) */
81
#define INT_TO_ADDRESS(x) ((void *)(long)x)
83
#define NULL_OR_ON_C_STACK(x) ((long)x < TBEGIN)
85
#define TEXT_START TBEGIN
86
#define DATA_START DBEGIN
87
#define UNIXSAVE "unexmips.c"
89
/* #define UNIXFASL "faslosf.c" */
90
#define UNIXFASL "fasldlsym.c"
92
#define MAKE_SHARED_LIB
94
/* this is a pretty poor test... */
95
#define IS_NOT_SHARED_OBJECT(fhdr,faslstream) \
97
#define LD_SHARED(filename,buf) \
98
sprintf(com,"ld -shared %s -expect_unresolved '*' -o %s -lc",filename, buf)
100
#define HAVE_GETDTABLESIZE
102
#define SIGPROTV SIGBUS
103
#define GET_FAULT_ADDR(sig,code,sv,a) ((char *) code)
104
#define MPROTECT_FAIL_VALUE -1
106
/* void * is not accepted by compiler */
109
#undef IF_ALLOCATE_ERR
111
#define IF_ALLOCATE_ERR \
112
if (core_end != sbrk(0))\
114
if ((ll=(int)(sbrk(0) - core_end)) <= PAGESIZE) \
115
{sbrk(PAGESIZE - ll); \
116
type_map[page(core_end)] = t_other; \
117
heap_end=core_end = sbrk(0); }\
119
error("Someone allocated my memory!");} \
120
if (core_end != (sbrk(PAGESIZE*(n - m))))
122
#define DO_BEFORE_SAVE setbuf(stdin,0) ; setbuf(stdout,0) ;setbuf(stderr,0) ;
124
#define INIT_CORE_END terminal_io->sm.sm_object0->sm.sm_fp = stdin;terminal_io->sm.sm_object1->sm.sm_fp = stdout;
131
/* Begin for cmpinclude */
133
#define SYSTEM_SPECIAL_INIT static init_code(){do_init(VV);}
140
/* End for cmpinclude */