1 /* tc.h -target cpu dependent- */
3 /* Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
5 This file is part of GAS, the GNU Assembler.
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 1, or (at your option)
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.
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. */
21 /* static const char rcsid[] = "$Id$"; */
23 /* In theory (mine, at least!) the machine dependent part of the assembler
24 should only have to include one file. This one. -- JF */
26 extern const pseudo_typeS md_pseudo_table[];
28 /* JF moved this here from as.h under the theory that nobody except MACHINE.c
29 and write.c care about it anyway. */
33 long rlx_forward; /* Forward reach. Signed number. > 0. */
34 long rlx_backward; /* Backward reach. Signed number. < 0. */
35 unsigned char rlx_length; /* Bytes length of this address. */
36 relax_substateT rlx_more; /* Next longer relax-state. */
37 /* 0 means there is no 'next' relax-state. */
41 extern const relax_typeS md_relax_table[]; /* Define it in MACHINE.c */
43 extern int md_reloc_size; /* Size of a relocation record */
45 extern void (*md_emit_relocations)();
49 char *md_atof(int what_statement_type, char *literalP, int *sizeP);
50 int md_estimate_size_before_relax(fragS *fragP, segT segtype);
51 int md_parse_option(char **argP, int *cntP, char ***vecP);
52 long md_pcrel_from(fixS *fixP);
53 long md_section_align(segT seg, long align);
54 short tc_coff_fix2rtype(fixS *fixP);
55 symbolS *md_undefined_symbol(char *name);
56 void md_apply_fix(fixS *fixP, long val);
57 void md_assemble(char *str);
59 void md_convert_frag(fragS *fragP);
60 void md_create_long_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol);
61 void md_create_short_jump(char *ptr, long from_addr, long to_addr, fragS *frag, symbolS *to_symbol);
63 void md_number_to_chars(char *buf, long val, int n);
64 void md_operand(expressionS *expressionP);
65 void md_ri_to_chars(char *the_bytes, struct reloc_info_generic *ri);
67 #ifndef tc_crawl_symbol_chain
68 void tc_crawl_symbol_chain(object_headers *headers);
69 #endif /* tc_crawl_symbol_chain */
71 #ifndef tc_headers_hook
72 void tc_headers_hook(object_headers *headers);
73 #endif /* tc_headers_hook */
78 int md_estimate_size_before_relax();
79 int md_parse_option();
81 long md_section_align();
82 short tc_coff_fix2rtype();
83 symbolS *md_undefined_symbol();
87 void md_convert_frag();
88 void md_create_long_jump();
89 void md_create_short_jump();
91 void md_number_to_chars();
93 void md_ri_to_chars();
95 #ifndef tc_headers_hook
96 void tc_headers_hook();
97 #endif /* tc_headers_hook */
99 #ifndef tc_crawl_symbol_chain
100 void tc_crawl_symbol_chain();
101 #endif /* tc_crawl_symbol_chain */