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