1 #define SECSIZE (1 << 18)
2 #define MAXTMP (1 << 12)
6 #define BT_SZMASK 0x00ff
7 #define BT_SIGNED 0x0100
8 #define BT_FLOAT 0x0200
9 #define BT_SZ(bt) ((bt) & BT_SZMASK)
38 void o_num(long n
, unsigned bt
);
39 void o_local(long addr
, unsigned bt
);
40 void o_assign(unsigned bt
);
41 void o_deref(unsigned bt
);
44 void o_symaddr(long addr
, unsigned bt
);
45 void o_call(int argc
, unsigned *bt
, unsigned ret_vs
);
47 long o_mklocal(int size
);
48 long o_arg(int i
, unsigned bt
);
49 void o_rmlocal(long addr
, int sz
);
50 void o_tmpdrop(int n
);
54 void o_forkpush(void);
55 void o_forkjoin(void);
56 void o_cast(unsigned bt
);
57 int o_popnum(long *c
);
60 long o_jnz(long addr
);
61 long o_jmp(long addr
);
62 void o_filljmp(long addr
);
63 void o_filljmp2(long addr
, long jmpdst
);
64 void o_memcpy(int sz
);
65 void o_memset(int x
, int sz
);
66 void o_datset(long addr
, int off
, unsigned bt
);
68 long o_func_beg(char *name
, int global
);
69 void o_func_end(void);
70 void o_ret(unsigned bt
);
76 void out_write(int fd
);
77 long out_func_beg(char *name
, int global
);
78 void out_func_end(char *buf
, int len
);
79 long out_mkvar(char *name
, int size
, int global
);
80 long out_mkdat(char *name
, char *buf
, int len
, int global
);
81 long out_mkundef(char *name
, int sz
);
82 void out_rela(long addr
, int off
, int rel
);
83 void out_datcpy(long addr
, int off
, char *buf
, int len
);
84 void out_datrela(long addr
, long dataddr
, int off
);