]>
Commit | Line | Data |
---|---|---|
fecd2382 RP |
1 | /* tc.h -target cpu dependent- */ |
2 | ||
3 | /* Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc. | |
a39116f1 RP |
4 | |
5 | This file is part of GAS, the GNU Assembler. | |
6 | ||
7 | GAS is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | GAS is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with GAS; see the file COPYING. If not, write to | |
19 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
fecd2382 RP |
20 | |
21 | /* In theory (mine, at least!) the machine dependent part of the assembler | |
22 | should only have to include one file. This one. -- JF */ | |
23 | ||
24 | extern const pseudo_typeS md_pseudo_table[]; | |
25 | ||
26 | /* JF moved this here from as.h under the theory that nobody except MACHINE.c | |
27 | and write.c care about it anyway. */ | |
28 | ||
29 | typedef struct | |
30 | { | |
31 | long rlx_forward; /* Forward reach. Signed number. > 0. */ | |
32 | long rlx_backward; /* Backward reach. Signed number. < 0. */ | |
33 | unsigned char rlx_length; /* Bytes length of this address. */ | |
34 | relax_substateT rlx_more; /* Next longer relax-state. */ | |
a39116f1 | 35 | /* 0 means there is no 'next' relax-state. */ |
fecd2382 RP |
36 | } |
37 | relax_typeS; | |
38 | ||
39 | extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */ | |
40 | ||
41 | extern int md_reloc_size; /* Size of a relocation record */ | |
42 | ||
43 | extern void (*md_emit_relocations)(); | |
44 | ||
45 | #ifdef __STDC__ | |
46 | ||
47 | char *md_atof(int what_statement_type, char *literalP, int *sizeP); | |
a39116f1 | 48 | int md_estimate_size_before_relax(fragS *fragP, segT segment); |
fecd2382 RP |
49 | int md_parse_option(char **argP, int *cntP, char ***vecP); |
50 | long md_pcrel_from(fixS *fixP); | |
51 | long md_section_align(segT seg, long align); | |
52 | short tc_coff_fix2rtype(fixS *fixP); | |
53 | symbolS *md_undefined_symbol(char *name); | |
54 | void md_apply_fix(fixS *fixP, long val); | |
55 | void md_assemble(char *str); | |
56 | void md_begin(void); | |
a39116f1 | 57 | void md_convert_frag(object_headers *headers, fragS *fragP); |
fecd2382 RP |
58 | void md_create_long_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol); |
59 | void md_create_short_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol); | |
60 | void md_end(void); | |
61 | void md_number_to_chars(char *buf, long val, int n); | |
62 | void md_operand(expressionS *expressionP); | |
fecd2382 RP |
63 | |
64 | #ifndef tc_crawl_symbol_chain | |
65 | void tc_crawl_symbol_chain(object_headers *headers); | |
66 | #endif /* tc_crawl_symbol_chain */ | |
67 | ||
68 | #ifndef tc_headers_hook | |
69 | void tc_headers_hook(object_headers *headers); | |
70 | #endif /* tc_headers_hook */ | |
71 | ||
72 | #else | |
73 | ||
74 | char *md_atof(); | |
75 | int md_estimate_size_before_relax(); | |
76 | int md_parse_option(); | |
77 | long md_pcrel_from(); | |
78 | long md_section_align(); | |
79 | short tc_coff_fix2rtype(); | |
80 | symbolS *md_undefined_symbol(); | |
81 | void md_apply_fix(); | |
82 | void md_assemble(); | |
83 | void md_begin(); | |
84 | void md_convert_frag(); | |
85 | void md_create_long_jump(); | |
86 | void md_create_short_jump(); | |
87 | void md_end(); | |
88 | void md_number_to_chars(); | |
89 | void md_operand(); | |
fecd2382 RP |
90 | |
91 | #ifndef tc_headers_hook | |
92 | void tc_headers_hook(); | |
93 | #endif /* tc_headers_hook */ | |
94 | ||
95 | #ifndef tc_crawl_symbol_chain | |
96 | void tc_crawl_symbol_chain(); | |
97 | #endif /* tc_crawl_symbol_chain */ | |
98 | ||
99 | #endif /* __STDC_ */ | |
100 | ||
101 | /* | |
102 | * Local Variables: | |
103 | * comment-column: 0 | |
104 | * fill-column: 131 | |
105 | * End: | |
106 | */ | |
107 | ||
108 | /* end of tp.h */ |