* src/vm/options.h: Renamed -verbosecolor to -debug-color,
[cacao.git] / src / vm / options.h
1 /* src/vm/options.h - define global options extern
2
3    Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, 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., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    Contact: cacao@cacaojvm.org
26
27    Authors: Christian Thalinger
28
29    Changes:
30
31    $Id: options.h 5258 2006-08-22 09:02:25Z tbfg $
32
33 */
34
35
36 #ifndef _OPTIONS_H
37 #define _OPTIONS_H
38
39
40 #include "config.h"
41 #include "vm/types.h"
42
43 #include "native/jni.h"
44 #include "vm/global.h"
45
46
47 /* reserved option numbers ****************************************************/
48
49 /* define these negative since the other options are an enum */
50
51 #define OPT_DONE       -1
52 #define OPT_ERROR      -2
53 #define OPT_IGNORE     -3
54
55
56 typedef struct opt_struct opt_struct;
57
58 struct opt_struct {
59         char *name;
60         bool  arg;
61         int   value;
62 };
63
64
65 /* global variables ***********************************************************/
66
67 extern s4    opt_index;
68 extern char *opt_arg;
69
70 extern bool opt_foo;
71
72 extern bool opt_jit;
73 extern bool opt_intrp;
74
75 extern bool opt_jar;
76 extern bool opt_run;
77
78 extern s4   opt_heapmaxsize;
79 extern s4   opt_heapstartsize;
80 extern s4   opt_stacksize;
81
82 extern bool opt_verbose;
83 extern bool opt_debugcolor;
84 extern bool compileall;
85
86 extern bool loadverbose;         /* Print debug messages during loading */
87 extern bool linkverbose;
88 extern bool initverbose;         /* Log class initialization */ 
89
90 extern bool opt_verboseclass;
91 extern bool opt_verbosegc;
92 extern bool opt_verbosejni;
93 extern bool opt_verbosecall;
94 extern bool opt_verboseexception;
95
96 extern bool showmethods;
97 extern bool showconstantpool;
98 extern bool showutf;
99
100 extern char *opt_method;
101 extern char *opt_signature;
102
103 extern bool compileverbose;
104 extern bool showstack;
105 extern bool opt_showdisassemble;
106 extern bool opt_showddatasegment;
107 extern bool opt_showintermediate;
108 extern bool opt_showexceptionstubs;
109 extern bool opt_shownativestub;
110
111 extern bool useinlining;
112 extern bool inlinevirtuals;
113 extern bool inlineexceptions;
114 extern bool inlineparamopt;
115 extern bool inlineoutsiders;
116
117 extern bool checkbounds;
118 extern bool checknull;
119 extern bool opt_noieee;
120 extern bool checksync;
121 #if defined(ENABLE_LOOP)
122 extern bool opt_loops;
123 #endif
124
125 extern bool makeinitializations;
126
127 #if defined(ENABLE_STATISTICS)
128 extern bool opt_stat;
129 extern bool opt_getloadingtime;
130 extern bool opt_getcompilingtime;
131 #endif
132 #if defined(ENABLE_VERIFIER)
133 extern bool opt_verify;
134 #endif
135 extern bool opt_eager;
136
137 extern bool opt_prof;
138 extern bool opt_prof_bb;
139
140
141 /* optimization options *******************************************************/
142
143 #if defined(ENABLE_IFCONV)
144 extern bool opt_ifconv;
145 #endif
146
147 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
148 extern bool opt_lsra;
149 #endif
150
151
152 /* interpreter options ********************************************************/
153
154 #if defined(ENABLE_INTRP)
155 extern bool opt_no_dynamic;
156 extern bool opt_no_replication;
157 extern bool opt_no_quicksuper;
158
159 extern s4   opt_static_supers;
160 extern bool vm_debug;
161 #endif
162
163
164 /* function prototypes ********************************************************/
165
166 s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
167 JavaVMInitArgs *options_prepare(int argc, char **argv);
168
169 #endif /* _OPTIONS_H */
170
171
172 /*
173  * These are local overrides for various environment variables in Emacs.
174  * Please do not remove this and leave it at the end of the file, where
175  * Emacs will automagically detect them.
176  * ---------------------------------------------------------------------
177  * Local variables:
178  * mode: c
179  * indent-tabs-mode: t
180  * c-basic-offset: 4
181  * tab-width: 4
182  * End:
183  */