1 /* src/vmcore/options.h - define global options extern
3 Copyright (C) 1996-2005, 2006, 2007, 2008
4 CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
6 This file is part of CACAO.
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2, or (at
11 your option) any later version.
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
36 #include "native/jni.h"
38 #include "vm/global.h"
41 /* reserved option numbers ****************************************************/
43 /* define these negative since the other options are an enum */
50 typedef struct opt_struct opt_struct;
59 typedef struct option_t option_t;
69 /* global variables ***********************************************************/
77 extern bool opt_intrp;
82 extern s4 opt_heapmaxsize;
83 extern s4 opt_heapstartsize;
84 extern s4 opt_stacksize;
86 extern bool opt_verbose;
87 extern bool opt_debugcolor;
88 extern bool compileall;
90 extern bool loadverbose; /* Print debug messages during loading */
91 extern bool initverbose; /* Log class initialization */
93 extern bool opt_verboseclass;
94 extern bool opt_verbosegc;
95 extern bool opt_verbosejni;
96 extern bool opt_verbosecall;
98 extern bool showmethods;
99 extern bool showconstantpool;
102 extern char *opt_method;
103 extern char *opt_signature;
105 extern bool compileverbose;
106 extern bool showstack;
108 extern bool opt_showdisassemble;
109 extern bool opt_shownops;
110 extern bool opt_showddatasegment;
111 extern bool opt_showintermediate;
113 extern bool checkbounds;
114 extern bool opt_noieee;
115 extern bool checksync;
116 #if defined(ENABLE_LOOP)
117 extern bool opt_loops;
120 extern bool makeinitializations;
122 #if defined(ENABLE_STATISTICS)
123 extern bool opt_stat;
124 extern bool opt_getloadingtime;
125 extern bool opt_getcompilingtime;
127 #if defined(ENABLE_VERIFIER)
128 extern bool opt_verify;
131 #if defined(ENABLE_PROFILING)
132 extern bool opt_prof;
133 extern bool opt_prof_bb;
136 /* optimization options *******************************************************/
138 #if defined(ENABLE_IFCONV)
139 extern bool opt_ifconv;
142 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
143 extern bool opt_lsra;
145 #if defined(ENABLE_SSA)
146 extern bool opt_ssa_dce; /* enable dead code elemination */
147 extern bool opt_ssa_cp; /* enable copy propagation */
150 /* interpreter options ********************************************************/
152 #if defined(ENABLE_INTRP)
153 extern bool opt_no_dynamic;
154 extern bool opt_no_replication;
155 extern bool opt_no_quicksuper;
157 extern s4 opt_static_supers;
158 extern bool vm_debug;
161 /* debug output filtering options *********************************************/
163 #if defined(ENABLE_DEBUG_FILTER)
164 extern const char *opt_filter_verbosecall_include;
165 extern const char *opt_filter_verbosecall_exclude;
166 extern const char *opt_filter_show_method;
170 /* -XX options ****************************************************************/
172 /* NOTE: For better readability keep these alpha-sorted. */
174 extern int opt_DebugExceptions;
175 extern int opt_DebugFinalizer;
176 extern int opt_DebugLocalReferences;
177 extern int opt_DebugLocks;
178 extern int opt_DebugPatcher;
179 extern int opt_DebugPackage;
180 extern int opt_DebugProperties;
181 extern int opt_DebugStackFrameInfo;
182 extern int opt_DebugStackTrace;
183 extern int opt_DebugThreads;
184 #if defined(ENABLE_DISASSEMBLER)
185 extern int opt_DisassembleStubs;
187 #if defined(ENABLE_GC_CACAO)
188 extern int opt_GCDebugRootSet;
189 extern int opt_GCStress;
191 #if defined(ENABLE_INLINING)
192 extern int opt_Inline;
193 #if defined(ENABLE_INLINING_DEBUG) || !defined(NDEBUG)
194 extern int opt_InlineAll;
195 extern int opt_InlineCount;
196 extern int opt_InlineMaxSize;
197 extern int opt_InlineMinSize;
200 extern int opt_MaxPermSize;
201 extern int opt_PermSize;
202 extern int opt_PrintConfig;
203 extern int opt_ProfileGCMemoryUsage;
204 extern int opt_ProfileMemoryUsage;
205 extern FILE *opt_ProfileMemoryUsageGNUPlot;
206 #if defined(ENABLE_REPLACEMENT)
207 extern int opt_TestReplacement;
209 extern int opt_ThreadStackSize;
210 extern int opt_TraceCompilerCalls;
211 extern int opt_TraceExceptions;
212 #if defined(ENABLE_INLINING) && !defined(NDEBUG)
213 extern int opt_TraceInlining;
215 extern int opt_TraceJavaCalls;
216 extern int opt_TraceJNICalls;
217 extern int opt_TraceJVMCalls;
218 extern int opt_TraceJVMCallsVerbose;
219 extern int opt_TraceLinkClass;
220 #if defined(ENABLE_REPLACEMENT)
221 extern int opt_TraceReplacement;
223 extern int opt_TraceSubsystemInitialization;
224 extern int opt_TraceTraps;
227 /* function prototypes ********************************************************/
229 s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
230 void options_xx(JavaVMInitArgs *vm_args);
233 /* debug **********************************************************************/
236 # define TRACESUBSYSTEMINITIALIZATION(text) \
238 if (opt_TraceSubsystemInitialization) { \
239 log_println("[Initializing subsystem: %s]", text); \
243 # define TRACESUBSYSTEMINITIALIZATION(text)
246 #endif /* _OPTIONS_H */
250 * These are local overrides for various environment variables in Emacs.
251 * Please do not remove this and leave it at the end of the file, where
252 * Emacs will automagically detect them.
253 * ---------------------------------------------------------------------
256 * indent-tabs-mode: t