* src/vm/jit/optimizing/profile.c (native/jni.h): Removed.
[cacao.git] / src / vmcore / options.h
1 /* src/vmcore/options.h - define global options extern
2
3    Copyright (C) 1996-2005, 2006, 2007 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    $Id: options.h 7338 2007-02-13 00:17:22Z twisti $
26
27 */
28
29
30 #ifndef _OPTIONS_H
31 #define _OPTIONS_H
32
33
34 #include "config.h"
35 #include "vm/types.h"
36
37 #include "native/jni.h"
38
39 #include "vm/global.h"
40
41
42 /* reserved option numbers ****************************************************/
43
44 /* define these negative since the other options are an enum */
45
46 #define OPT_DONE       -1
47 #define OPT_ERROR      -2
48 #define OPT_IGNORE     -3
49
50
51 typedef struct opt_struct opt_struct;
52
53 struct opt_struct {
54         char *name;
55         bool  arg;
56         int   value;
57 };
58
59
60 /* global variables ***********************************************************/
61
62 extern s4    opt_index;
63 extern char *opt_arg;
64
65 extern bool opt_foo;
66
67 extern bool opt_jit;
68 extern bool opt_intrp;
69
70 extern bool opt_jar;
71 extern bool opt_run;
72
73 extern s4   opt_heapmaxsize;
74 extern s4   opt_heapstartsize;
75 extern s4   opt_stacksize;
76
77 extern bool opt_verbose;
78 extern bool opt_debugcolor;
79 extern bool compileall;
80
81 extern bool loadverbose;         /* Print debug messages during loading */
82 extern bool linkverbose;
83 extern bool initverbose;         /* Log class initialization */ 
84
85 extern bool opt_verboseclass;
86 extern bool opt_verbosegc;
87 extern bool opt_verbosejni;
88 extern bool opt_verbosecall;
89 extern bool opt_verboseexception;
90 extern bool opt_verbosememory;
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
102 extern bool opt_showdisassemble;
103 extern bool opt_shownops;
104 extern bool opt_showddatasegment;
105 extern bool opt_showintermediate;
106 extern bool opt_showexceptionstubs;
107 extern bool opt_shownativestub;
108
109 extern bool useinlining;
110 extern bool inlinevirtuals;
111 extern bool inlineexceptions;
112 extern bool inlineparamopt;
113 extern bool inlineoutsiders;
114
115 extern bool checkbounds;
116 extern bool checknull;
117 extern bool opt_noieee;
118 extern bool checksync;
119 #if defined(ENABLE_LOOP)
120 extern bool opt_loops;
121 #endif
122
123 extern bool makeinitializations;
124
125 #if defined(ENABLE_STATISTICS)
126 extern bool opt_stat;
127 extern bool opt_getloadingtime;
128 extern bool opt_getcompilingtime;
129 #endif
130 #if defined(ENABLE_VERIFIER)
131 extern bool opt_verify;
132 #endif
133 extern bool opt_eager;
134
135 #if defined(ENABLE_PROFILING)
136 extern bool opt_prof;
137 extern bool opt_prof_bb;
138 #endif
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
168 #endif /* _OPTIONS_H */
169
170
171 /*
172  * These are local overrides for various environment variables in Emacs.
173  * Please do not remove this and leave it at the end of the file, where
174  * Emacs will automagically detect them.
175  * ---------------------------------------------------------------------
176  * Local variables:
177  * mode: c
178  * indent-tabs-mode: t
179  * c-basic-offset: 4
180  * tab-width: 4
181  * End:
182  */