144
|
1 /* for mc-codegen.c */
|
61
|
2
|
221
|
3 extern int use; /* generated value will be used in gexpr */
|
83
|
4
|
221
|
5 #define USE_CREG (-1)
|
61
|
6
|
104
|
7 /* function provided by mc-code-*.c */
|
|
8
|
105
|
9 extern int get_register_var(NMTBL *);
|
138
|
10 extern int get_dregister_var(NMTBL *,int);
|
195
|
11 extern int get_lregister_var(NMTBL *);
|
137
|
12
|
|
13 extern void arg_register(NMTBL *fnptr);
|
104
|
14
|
61
|
15 /* function provided by mc-codegen.c */
|
|
16
|
102
|
17 extern void codegen_init();
|
|
18
|
61
|
19 extern void def_label(int cslabel, int dlabel);
|
|
20 extern int backdef(void);
|
137
|
21 extern int free_register_count(int);
|
61
|
22 extern int fwdlabel(void);
|
|
23 extern void b_expr(int e1, char cond, int l1,int err);
|
|
24 extern void bexpr(int e1, char cond, int l1);
|
|
25 extern void emit_init(void);
|
|
26 extern void fwddef(int l);
|
|
27
|
98
|
28 extern int is_code(NMTBL *fnptr);
|
|
29 extern int is_function(NMTBL *fnptr);
|
|
30
|
61
|
31 extern int csvalue();
|
|
32 extern void cmpdimm(int e, int csreg);
|
|
33 extern void code_enter(char *name) ;
|
|
34 extern void code_enter1(int args);
|
|
35 extern void code_init(void);
|
|
36 extern void code_leave(char *name) ;
|
|
37 extern void emit_data(int e, int t, NMTBL *n);
|
|
38 extern void emit_data_closing(NMTBL *n);
|
|
39 extern void emit_init(void);
|
|
40 extern void enter(char *name);
|
|
41 extern void enter1();
|
94
|
42 extern int g_expr(int e1);
|
99
|
43 extern int g_expr_u(int e1);
|
61
|
44 extern void gen_comment(char *s);
|
|
45 extern void gen_gdecl(char *n, int gpc);
|
|
46 extern void gen_source(char *s);
|
94
|
47 extern int gexpr(int e1,int use);
|
61
|
48 extern void gexpr_init(void);
|
|
49 extern void jcond(int l, char cond);
|
|
50 extern void jmp(int l);
|
|
51 extern void jmp_eq_label(int l);
|
|
52 extern void jmp_label(int l);
|
|
53 extern void leave(int control, char *name);
|
|
54 extern void opening(char *filename);
|
66
|
55 extern void closing();
|
61
|
56 extern void ret(void);
|
78
|
57 extern void creg_destroy();
|
61
|
58
|
99
|
59 extern int contains(int e,int type);
|
104
|
60 extern int contains_in_list(int e,int type);
|
99
|
61
|
61
|
62
|
|
63 /* end */
|