OLD | NEW |
1 /* ia64-gen.c -- Generate a shrunk set of opcode tables | 1 /* ia64-gen.c -- Generate a shrunk set of opcode tables |
2 Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009 | 2 Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008, 2009, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 Written by Bob Manson, Cygnus Solutions, <manson@cygnus.com> | 4 Written by Bob Manson, Cygnus Solutions, <manson@cygnus.com> |
5 | 5 |
6 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
7 | 7 |
8 This library is free software; you can redistribute it and/or modify | 8 This library is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3, or (at your option) | 10 the Free Software Foundation; either version 3, or (at your option) |
11 any later version. | 11 any later version. |
12 | 12 |
(...skipping 14 matching lines...) Expand all Loading... |
27 their possible completers, as well as compacting the set of strings used. | 27 their possible completers, as well as compacting the set of strings used. |
28 | 28 |
29 The disassembler table consists of a state machine that does | 29 The disassembler table consists of a state machine that does |
30 branching based on the bits of the opcode being disassembled. The | 30 branching based on the bits of the opcode being disassembled. The |
31 state encodings have been chosen to minimize the amount of space | 31 state encodings have been chosen to minimize the amount of space |
32 required. | 32 required. |
33 | 33 |
34 The resource table is constructed based on some text dependency tables, | 34 The resource table is constructed based on some text dependency tables, |
35 which are also easier to maintain than the final representation. */ | 35 which are also easier to maintain than the final representation. */ |
36 | 36 |
| 37 #include "sysdep.h" |
37 #include <stdio.h> | 38 #include <stdio.h> |
38 #include <stdarg.h> | 39 #include <stdarg.h> |
39 #include <errno.h> | 40 #include <errno.h> |
40 | 41 |
41 #include "ansidecl.h" | |
42 #include "libiberty.h" | 42 #include "libiberty.h" |
43 #include "safe-ctype.h" | 43 #include "safe-ctype.h" |
44 #include "sysdep.h" | |
45 #include "getopt.h" | 44 #include "getopt.h" |
46 #include "ia64-opc.h" | 45 #include "ia64-opc.h" |
47 #include "ia64-opc-a.c" | 46 #include "ia64-opc-a.c" |
48 #include "ia64-opc-i.c" | 47 #include "ia64-opc-i.c" |
49 #include "ia64-opc-m.c" | 48 #include "ia64-opc-m.c" |
50 #include "ia64-opc-b.c" | 49 #include "ia64-opc-b.c" |
51 #include "ia64-opc-f.c" | 50 #include "ia64-opc-f.c" |
52 #include "ia64-opc-x.c" | 51 #include "ia64-opc-x.c" |
53 #include "ia64-opc-d.c" | 52 #include "ia64-opc-d.c" |
54 | 53 |
(...skipping 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2883 | 2882 |
2884 print_string_table (); | 2883 print_string_table (); |
2885 print_dependency_table (); | 2884 print_dependency_table (); |
2886 print_completer_table (); | 2885 print_completer_table (); |
2887 print_main_table (); | 2886 print_main_table (); |
2888 | 2887 |
2889 generate_disassembler (); | 2888 generate_disassembler (); |
2890 | 2889 |
2891 exit (0); | 2890 exit (0); |
2892 } | 2891 } |
OLD | NEW |