* Updated header: Added 2006. Changed address of FSF. Changed email
[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 4357 2006-01-22 23:33:38Z 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 "vm/global.h"
44
45
46 /* reserved option numbers ****************************************************/
47
48 /* define these negative since the other options are an enum */
49
50 #define OPT_DONE       -1
51 #define OPT_ERROR      -2
52 #define OPT_IGNORE     -3
53
54
55 typedef struct opt_struct opt_struct;
56
57 struct opt_struct {
58         char *name;
59         bool  arg;
60         int   value;
61 };
62
63
64 /* global variables ***********************************************************/
65
66 extern s4    opt_ind;
67 extern char *opt_arg;
68
69 extern bool opt_jit;
70 extern bool opt_intrp;
71
72 extern s4   opt_stacksize;
73 extern bool opt_verbose;
74 extern bool compileall;
75 extern bool runverbose;
76 extern bool opt_verboseexception;
77
78 extern bool loadverbose;         /* Print debug messages during loading */
79 extern bool linkverbose;
80 extern bool initverbose;         /* Log class initialization */ 
81
82 extern bool opt_verboseclass;
83 extern bool opt_verbosegc;
84 extern bool opt_verbosejni;
85
86 extern bool opt_rt;
87 extern bool opt_xta;
88 extern bool opt_vta;
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 bool compileverbose;
97 extern bool showstack;
98 extern bool opt_showdisassemble;
99 extern bool opt_showddatasegment;
100 extern bool opt_showintermediate;
101 extern bool opt_showexceptionstubs;
102 extern bool opt_shownativestub;
103
104 extern bool useinlining;
105 extern bool inlinevirtuals;
106 extern bool inlineexceptions;
107 extern bool inlineparamopt;
108 extern bool inlineoutsiders;
109
110 extern bool checkbounds;
111 extern bool checknull;
112 extern bool opt_noieee;
113 extern bool checksync;
114 extern bool opt_loops;
115
116 extern bool makeinitializations;
117
118 extern bool getloadingtime;
119 extern bool getcompilingtime;
120
121 extern int has_ext_instr_set;
122
123 extern bool opt_stat;
124 extern bool opt_verify;
125 extern bool opt_eager;
126
127 #if defined(ENABLE_LSRA)
128 extern bool opt_lsra;
129 #endif
130
131
132 /* interpreter options ********************************************************/
133
134 #if defined(ENABLE_INTRP)
135 extern bool opt_no_dynamic;
136 extern bool opt_no_replication;
137 extern bool opt_no_quicksuper;
138
139 extern s4   opt_static_supers;
140 extern bool vm_debug;
141 #endif
142
143
144 /* function prototypes ********************************************************/
145
146 int get_opt(int argc, char **argv, opt_struct *opts);
147
148
149 #endif /* _OPTIONS_H */
150
151
152 /*
153  * These are local overrides for various environment variables in Emacs.
154  * Please do not remove this and leave it at the end of the file, where
155  * Emacs will automagically detect them.
156  * ---------------------------------------------------------------------
157  * Local variables:
158  * mode: c
159  * indent-tabs-mode: t
160  * c-basic-offset: 4
161  * tab-width: 4
162  * End:
163  */