Mercurial > hg > CbC > old > device
annotate mc-codegen.h @ 445:5ec2a88b9f4d const-attribute
const
author | kono |
---|---|
date | Sun, 21 Nov 2004 19:20:18 +0900 |
parents | 626d705471d5 |
children | c55363eff5e5 |
rev | line source |
---|---|
144 | 1 /* for mc-codegen.c */ |
61 | 2 |
221 | 3 extern int use; /* generated value will be used in gexpr */ |
327 | 4 extern char *init_src; |
5 extern int size_of_int; | |
6 extern int size_of_short; | |
7 extern int size_of_float; | |
8 extern int size_of_double; | |
9 extern int size_of_longlong; | |
10 extern int bit_of_byte; | |
11 extern int endian; | |
397 | 12 extern int disp_align; |
83 | 13 |
221 | 14 #define USE_CREG (-1) |
320 | 15 #define ASM_INPUT 1 |
16 #define ASM_OUTPUT 2 | |
17 #define ASM_USED 3 | |
18 #define MAX_ASM_REG 30 | |
61 | 19 |
327 | 20 /* used by mc-parse */ |
104 | 21 |
331 | 22 |
445 | 23 extern NMTBL * def(NMTBL *n,int ctmode); |
331 | 24 extern int arg_reorder(int arg,int new_arg); |
25 extern int assign_data(int e, int t, NMTBL *n,int offset); | |
26 extern int assign_expr(int e1,int e2,int t); | |
27 extern int assign_expr0(int e1,int e2,int t,int type0); | |
28 extern int assop(int e1,int e2,int op,int t,int no_float); | |
29 extern int backdef(void); | |
30 extern int binop(int op, int e1, int e2, int t1, int t2); | |
31 extern int cexpr(int e); | |
32 extern int cond(int t,int e1,int e2,int e3); | |
33 extern int correct_type(int e,int t); | |
34 extern int csvalue(); | |
35 extern int function_type(int e1,int *dots); | |
36 extern int gexpr(int e1,int use0); | |
37 extern int indop(int e); | |
38 extern int integral(int t); | |
39 extern int new_lvar(int size); | |
40 extern int new_lvar0(int sz); | |
327 | 41 extern int rvalue(int e); |
42 extern int rvalue_t(int e,int t); | |
331 | 43 extern int search_struct_type(int type,char *name,int *dsp); |
44 extern int strop(int e,int ind); | |
137 | 45 extern void arg_register(NMTBL *fnptr); |
438
626d705471d5
Unexecuted code in conditional. Lazy jmp code generation.
kono
parents:
397
diff
changeset
|
46 extern int bexpr(int e1, char cond, int l1); |
626d705471d5
Unexecuted code in conditional. Lazy jmp code generation.
kono
parents:
397
diff
changeset
|
47 extern int bexpr_u(int e1, char cond, int l1); |
327 | 48 extern void checkret(void); |
49 extern void closing(); | |
50 extern void cmpdimm(int e, int csreg,int label,int cond); | |
331 | 51 extern void codegen_decl_init(); /* called before each declaration */ |
327 | 52 extern void codegen_init(); /* called only once */ |
53 extern void codegen_reinit(); /* called for each file */ | |
328 | 54 extern void data_closing(NMTBL *n); |
327 | 55 extern void def_label(int cslabel, int dlabel); |
56 extern void emit_init_vars(void); | |
331 | 57 extern void fcheck(NMTBL *n); |
327 | 58 extern void fdecl_struct(int fntype); |
59 extern void free_lvar(int disp); | |
60 extern void gen_code_enter(char *name); | |
61 extern void gen_code_enter1(int args); | |
62 extern void gen_code_leave(char *name); | |
63 extern void gen_enter(char *name); | |
64 extern void gen_enter1(); | |
331 | 65 extern void gen_jmp(int l); |
363 | 66 extern void gen_indirect_goto(int e1); |
327 | 67 extern void gen_leave(int control, char *name); |
331 | 68 extern void init_free_lvar_list(); |
69 extern void lcheck(int e); | |
70 extern void opening(char *filename); | |
71 extern void parallel_rassign(int assigns); | |
72 extern void replace_return_struct(int func,int left); | |
327 | 73 extern void ret(void); |
74 | |
75 /* used by mc-cod-* */ | |
76 | |
77 extern int assign_expr0(int e1,int e2,int t,int type0) ; | |
438
626d705471d5
Unexecuted code in conditional. Lazy jmp code generation.
kono
parents:
397
diff
changeset
|
78 extern int b_expr(int e1, char cond, int l1,int err); |
327 | 79 extern int contains_p(int e,int (*p)(int)); |
61 | 80 extern void fwddef(int l); |
327 | 81 extern int fwdlabel(void); |
82 extern int g_expr(int e1); | |
83 extern int g_expr0(int e1); | |
84 extern int g_expr_u(int e1); | |
98 | 85 extern int is_code(NMTBL *fnptr); |
86 extern int is_function(NMTBL *fnptr); | |
327 | 87 extern int scalar(int t); |
336 | 88 extern int make_mask(int from,int to); |
89 | |
341 | 90 extern void init_ptr_cache(); |
91 extern void clear_ptr_cache_reg(int r); | |
92 extern int last_ptr_cache(); | |
93 extern void clear_ptr_cache() ; | |
94 extern int get_ptr_cache(NMTBL *nptr); | |
61 | 95 |
366 | 96 extern int ilog(int i); |
97 | |
61 | 98 /* end */ |