* src/vm/options.c (opt_shownops): Added.
[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 5922 2006-11-05 21:43:09Z twisti $
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
106 extern bool opt_showdisassemble;
107 extern bool opt_shownops;
108 extern bool opt_showddatasegment;
109 extern bool opt_showintermediate;
110 extern bool opt_showexceptionstubs;
111 extern bool opt_shownativestub;
112
113 extern bool useinlining;
114 extern bool inlinevirtuals;
115 extern bool inlineexceptions;
116 extern bool inlineparamopt;
117 extern bool inlineoutsiders;
118
119 extern bool checkbounds;
120 extern bool checknull;
121 extern bool opt_noieee;
122 extern bool checksync;
123 #if defined(ENABLE_LOOP)
124 extern bool opt_loops;
125 #endif
126
127 extern bool makeinitializations;
128
129 #if defined(ENABLE_STATISTICS)
130 extern bool opt_stat;
131 extern bool opt_getloadingtime;
132 extern bool opt_getcompilingtime;
133 #endif
134 #if defined(ENABLE_VERIFIER)
135 extern bool opt_verify;
136 #endif
137 extern bool opt_eager;
138
139 #if defined(ENABLE_PROFILING)
140 extern bool opt_prof;
141 extern bool opt_prof_bb;
142 #endif
143
144
145 /* optimization options *******************************************************/
146
147 #if defined(ENABLE_IFCONV)
148 extern bool opt_ifconv;
149 #endif
150
151 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
152 extern bool opt_lsra;
153 #endif
154
155
156 /* interpreter options ********************************************************/
157
158 #if defined(ENABLE_INTRP)
159 extern bool opt_no_dynamic;
160 extern bool opt_no_replication;
161 extern bool opt_no_quicksuper;
162
163 extern s4   opt_static_supers;
164 extern bool vm_debug;
165 #endif
166
167
168 /* function prototypes ********************************************************/
169
170 s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
171
172 #endif /* _OPTIONS_H */
173
174
175 /*
176  * These are local overrides for various environment variables in Emacs.
177  * Please do not remove this and leave it at the end of the file, where
178  * Emacs will automagically detect them.
179  * ---------------------------------------------------------------------
180  * Local variables:
181  * mode: c
182  * indent-tabs-mode: t
183  * c-basic-offset: 4
184  * tab-width: 4
185  * End:
186  */