* PATCHER_checkcast_instanceof: Added for intrp.
[cacao.git] / src / vm / options.h
1 /* vm/options.h - define global options extern
2
3    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5    C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6    Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2, or (at
13    your option) any later version.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23    02111-1307, USA.
24
25    Contact: cacao@complang.tuwien.ac.at
26
27    Authors: Christian Thalinger
28
29    $Id: options.h 2950 2005-07-09 13:37:29Z twisti $
30
31 */
32
33
34 #ifndef _OPTIONS_H
35 #define _OPTIONS_H
36
37
38 #include "vm/global.h"
39
40
41 /* reserved option numbers ****************************************************/
42
43 #define OPT_DONE       -1
44 #define OPT_ERROR       0
45 #define OPT_IGNORE      1
46
47
48 typedef struct opt_struct opt_struct;
49
50 struct opt_struct {
51         char *name;
52         bool  arg;
53         int   value;
54 };
55
56
57 /* global variables ***********************************************************/
58
59 extern bool opt_verbose;
60 extern bool compileall;
61 extern bool runverbose;
62 extern bool verboseexception;
63
64 extern bool loadverbose;         /* Print debug messages during loading */
65 extern bool linkverbose;
66 extern bool initverbose;         /* Log class initialization */ 
67 extern bool opt_verbosegc;
68 extern bool opt_verbosejni;
69
70 extern bool opt_rt;
71 extern bool opt_xta;
72 extern bool opt_vta;
73
74 extern bool opt_liberalutf;      /* Don't check overlong UTF-8 sequences */
75
76 extern bool showmethods;
77 extern bool showconstantpool;
78 extern bool showutf;
79
80 extern bool compileverbose;
81 extern bool showstack;
82 extern bool opt_showdisassemble;
83 extern bool opt_showddatasegment;
84 extern bool opt_showintermediate;
85 extern bool opt_showexceptionstubs;
86 extern bool opt_shownativestub;
87
88 /*#undef INAFTERMAIN*/  /*use to inline system methods before main is called*/
89 #define INAFTERMAIN T /*use to turn off inlining before main called */
90 extern bool useinliningm;
91 extern bool useinlining;
92 extern bool inlinevirtuals;
93 extern bool inlineexceptions;
94 extern bool inlineparamopt;
95 extern bool inlineoutsiders;
96
97 extern bool checkbounds;
98 extern bool checknull;
99 extern bool opt_noieee;
100 extern bool checksync;
101 extern bool opt_loops;
102
103 extern bool makeinitializations;
104
105 extern bool getloadingtime;
106 extern bool getcompilingtime;
107
108 extern int has_ext_instr_set;
109
110 extern bool opt_stat;
111 extern bool opt_verify;
112 extern bool opt_eager;
113
114 #ifdef LSRA
115 extern bool opt_lsra;
116 #endif
117
118 extern int opt_ind;
119 extern char *opt_arg;
120
121
122 /* function prototypes ********************************************************/
123
124 int get_opt(int argc, char **argv, opt_struct *opts);
125
126
127 #endif /* _OPTIONS_H */
128
129
130 /*
131  * These are local overrides for various environment variables in Emacs.
132  * Please do not remove this and leave it at the end of the file, where
133  * Emacs will automagically detect them.
134  * ---------------------------------------------------------------------
135  * Local variables:
136  * mode: c
137  * indent-tabs-mode: t
138  * c-basic-offset: 4
139  * tab-width: 4
140  * End:
141  */