1 /* src/vmcore/options.h - define global options extern
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
8 This file is part of CACAO.
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.
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.
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
38 #include "native/jni.h"
40 #include "vm/global.h"
43 /* reserved option numbers ****************************************************/
45 /* define these negative since the other options are an enum */
52 typedef struct opt_struct opt_struct;
61 typedef struct option_t option_t;
71 /* global variables ***********************************************************/
79 extern bool opt_intrp;
84 extern s4 opt_heapmaxsize;
85 extern s4 opt_heapstartsize;
86 extern s4 opt_stacksize;
88 extern bool opt_verbose;
89 extern bool opt_debugcolor;
90 extern bool compileall;
92 extern bool loadverbose; /* Print debug messages during loading */
93 extern bool linkverbose;
94 extern bool initverbose; /* Log class initialization */
96 extern bool opt_verboseclass;
97 extern bool opt_verbosegc;
98 extern bool opt_verbosejni;
99 extern bool opt_verbosecall;
100 extern bool opt_verbosethreads;
102 extern bool showmethods;
103 extern bool showconstantpool;
106 extern char *opt_method;
107 extern char *opt_signature;
109 extern bool compileverbose;
110 extern bool showstack;
112 extern bool opt_showdisassemble;
113 extern bool opt_shownops;
114 extern bool opt_showddatasegment;
115 extern bool opt_showintermediate;
116 extern bool opt_showexceptionstubs;
118 extern bool checkbounds;
119 extern bool opt_noieee;
120 extern bool checksync;
121 #if defined(ENABLE_LOOP)
122 extern bool opt_loops;
125 extern bool makeinitializations;
127 #if defined(ENABLE_STATISTICS)
128 extern bool opt_stat;
129 extern bool opt_getloadingtime;
130 extern bool opt_getcompilingtime;
132 #if defined(ENABLE_VERIFIER)
133 extern bool opt_verify;
136 #if defined(ENABLE_PROFILING)
137 extern bool opt_prof;
138 extern bool opt_prof_bb;
141 /* inlining options ***********************************************************/
143 #if defined(ENABLE_INLINING)
144 extern bool opt_inlining;
145 #if defined(ENABLE_INLINING_DEBUG) || !defined(NDEBUG)
146 extern s4 opt_inline_debug_min_size;
147 extern s4 opt_inline_debug_max_size;
148 extern s4 opt_inline_debug_end_counter;
149 extern bool opt_inline_debug_all;
150 #endif /* defined(ENABLE_INLINING_DEBUG) || !defined(NDEBUG) */
152 extern bool opt_inline_debug_log;
153 #endif /* !defined(NDEBUG) */
154 #endif /* defined(ENABLE_INLINING) */
157 /* optimization options *******************************************************/
159 #if defined(ENABLE_IFCONV)
160 extern bool opt_ifconv;
163 #if defined(ENABLE_LSRA) || defined(ENABLE_SSA)
164 extern bool opt_lsra;
168 /* interpreter options ********************************************************/
170 #if defined(ENABLE_INTRP)
171 extern bool opt_no_dynamic;
172 extern bool opt_no_replication;
173 extern bool opt_no_quicksuper;
175 extern s4 opt_static_supers;
176 extern bool vm_debug;
179 /* debug output filtering options *********************************************/
181 #if defined(ENABLE_DEBUG_FILTER)
182 extern const char *opt_filter_verbosecall_include;
183 extern const char *opt_filter_verbosecall_exclude;
184 extern const char *opt_filter_show_method;
188 /* -XX options ****************************************************************/
190 /* NOTE: For better readability keep these alpha-sorted. */
192 extern int32_t opt_DebugStackFrameInfo;
193 extern int32_t opt_DebugStackTrace;
194 #if defined(ENABLE_DISASSEMBLER)
195 extern int opt_DisassembleStubs;
197 #if defined(ENABLE_GC_CACAO)
198 extern int32_t opt_GCDebugRootSet;
199 extern int32_t opt_GCStress;
201 extern int32_t opt_MaxPermSize;
202 extern int32_t opt_PermSize;
203 extern int opt_PrintConfig;
204 extern int32_t opt_ProfileGCMemoryUsage;
205 extern int32_t opt_ProfileMemoryUsage;
206 extern FILE *opt_ProfileMemoryUsageGNUPlot;
207 extern int32_t opt_ThreadStackSize;
208 extern int32_t opt_TraceExceptions;
209 extern int32_t opt_TraceJavaCalls;
210 extern int32_t opt_TraceJNICalls;
211 extern int32_t opt_TraceJVMCalls;
212 #if defined(ENABLE_REPLACEMENT)
213 extern int32_t opt_TraceReplacement;
217 /* function prototypes ********************************************************/
219 s4 options_get(opt_struct *opts, JavaVMInitArgs *vm_args);
220 void options_xx(const char *name);
222 #endif /* _OPTIONS_H */
226 * These are local overrides for various environment variables in Emacs.
227 * Please do not remove this and leave it at the end of the file, where
228 * Emacs will automagically detect them.
229 * ---------------------------------------------------------------------
232 * indent-tabs-mode: t