* configure.ac (ENABLE_LOOP): Changed default to "no".
[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 4796 2006-04-20 18:04:18Z edwin $
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_jit;
71 extern bool opt_intrp;
72
73 extern bool opt_jar;
74 extern bool opt_run;
75
76 extern s4   opt_stacksize;
77 extern bool opt_verbose;
78 extern bool compileall;
79
80 extern bool loadverbose;         /* Print debug messages during loading */
81 extern bool linkverbose;
82 extern bool initverbose;         /* Log class initialization */ 
83
84 extern bool opt_verboseclass;
85 extern bool opt_verbosegc;
86 extern bool opt_verbosejni;
87 extern bool opt_verbosecall;
88 extern bool opt_verboseexception;
89
90 extern bool opt_liberalutf;      /* Don't check overlong UTF-8 sequences */
91
92 extern bool showmethods;
93 extern bool showconstantpool;
94 extern bool showutf;
95
96 extern char *opt_method;
97 extern char *opt_signature;
98
99 extern bool compileverbose;
100 extern bool showstack;
101 extern bool opt_showdisassemble;
102 extern bool opt_showddatasegment;
103 extern bool opt_showintermediate;
104 extern bool opt_showexceptionstubs;
105 extern bool opt_shownativestub;
106
107 extern bool useinlining;
108 extern bool inlinevirtuals;
109 extern bool inlineexceptions;
110 extern bool inlineparamopt;
111 extern bool inlineoutsiders;
112
113 extern bool checkbounds;
114 extern bool checknull;
115 extern bool opt_noieee;
116 extern bool checksync;
117 #if defined(ENABLE_LOOP)
118 extern bool opt_loops;
119 #endif
120
121 extern bool makeinitializations;
122
123 extern bool getloadingtime;
124 extern bool getcompilingtime;
125
126 extern bool opt_stat;
127 extern bool opt_verify;
128 extern bool opt_eager;
129
130 extern bool opt_prof;
131 extern bool opt_prof_bb;
132
133
134 /* optimization options *******************************************************/
135
136 #if defined(ENABLE_IFCONV)
137 extern bool opt_ifconv;
138 #endif
139
140 #if defined(ENABLE_LSRA)
141 extern bool opt_lsra;
142 #endif
143
144
145 /* interpreter options ********************************************************/
146
147 #if defined(ENABLE_INTRP)
148 extern bool opt_no_dynamic;
149 extern bool opt_no_replication;
150 extern bool opt_no_quicksuper;
151
152 extern s4   opt_static_supers;
153 extern bool vm_debug;
154 #endif
155
156
157 /* function prototypes ********************************************************/
158
159 s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
160 JavaVMInitArgs *options_prepare(int argc, char **argv);
161
162 #endif /* _OPTIONS_H */
163
164
165 /*
166  * These are local overrides for various environment variables in Emacs.
167  * Please do not remove this and leave it at the end of the file, where
168  * Emacs will automagically detect them.
169  * ---------------------------------------------------------------------
170  * Local variables:
171  * mode: c
172  * indent-tabs-mode: t
173  * c-basic-offset: 4
174  * tab-width: 4
175  * End:
176  */