b2296fdb9154d227baafe4fb9aa632fa8381fa9c
[cacao.git] / src / vm / options.h
1 /* src/vm/options.h - define global options extern
2
3    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5    C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6    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., 59 Temple Place - Suite 330, Boston, MA
23    02111-1307, USA.
24
25    Contact: cacao@complang.tuwien.ac.at
26
27    Authors: Christian Thalinger
28
29    Changes:
30
31    $Id: options.h 3270 2005-09-21 20:24:11Z twisti $
32
33 */
34
35
36 #ifndef _OPTIONS_H
37 #define _OPTIONS_H
38
39
40 #include "vm/global.h"
41
42
43 /* reserved option numbers ****************************************************/
44
45 #define OPT_DONE       -1
46 #define OPT_ERROR       0
47 #define OPT_IGNORE      1
48
49
50 typedef struct opt_struct opt_struct;
51
52 struct opt_struct {
53         char *name;
54         bool  arg;
55         int   value;
56 };
57
58
59 /* global variables ***********************************************************/
60
61 extern s4    opt_ind;
62 extern char *opt_arg;
63
64 extern bool opt_jit;
65 extern bool opt_intrp;
66
67 extern s4   opt_stacksize;
68 extern bool opt_verbose;
69 extern bool compileall;
70 extern bool runverbose;
71 extern bool opt_verboseexception;
72
73 extern bool loadverbose;         /* Print debug messages during loading */
74 extern bool linkverbose;
75 extern bool initverbose;         /* Log class initialization */ 
76 extern bool opt_verbosegc;
77 extern bool opt_verbosejni;
78
79 extern bool opt_rt;
80 extern bool opt_xta;
81 extern bool opt_vta;
82
83 extern bool opt_liberalutf;      /* Don't check overlong UTF-8 sequences */
84
85 extern bool showmethods;
86 extern bool showconstantpool;
87 extern bool showutf;
88
89 extern bool compileverbose;
90 extern bool showstack;
91 extern bool opt_showdisassemble;
92 extern bool opt_showddatasegment;
93 extern bool opt_showintermediate;
94 extern bool opt_showexceptionstubs;
95 extern bool opt_shownativestub;
96
97 /*#undef INAFTERMAIN*/  /*use to inline system methods before main is called*/
98 #define INAFTERMAIN T /*use to turn off inlining before main called */
99 extern bool useinliningm;
100 extern bool useinlining;
101 extern bool inlinevirtuals;
102 extern bool inlineexceptions;
103 extern bool inlineparamopt;
104 extern bool inlineoutsiders;
105
106 extern bool checkbounds;
107 extern bool checknull;
108 extern bool opt_noieee;
109 extern bool checksync;
110 extern bool opt_loops;
111
112 extern bool makeinitializations;
113
114 extern bool getloadingtime;
115 extern bool getcompilingtime;
116
117 extern int has_ext_instr_set;
118
119 extern bool opt_stat;
120 extern bool opt_verify;
121 extern bool opt_eager;
122
123 #ifdef LSRA
124 extern bool opt_lsra;
125 #endif
126
127 extern s4 opt_static_supers;
128 extern bool vm_debug;
129
130
131 /* function prototypes ********************************************************/
132
133 int get_opt(int argc, char **argv, opt_struct *opts);
134
135
136 #endif /* _OPTIONS_H */
137
138
139 /*
140  * These are local overrides for various environment variables in Emacs.
141  * Please do not remove this and leave it at the end of the file, where
142  * Emacs will automagically detect them.
143  * ---------------------------------------------------------------------
144  * Local variables:
145  * mode: c
146  * indent-tabs-mode: t
147  * c-basic-offset: 4
148  * tab-width: 4
149  * End:
150  */