Contains commandline switch variables used in cacao and cacaoh.
[cacao.git] / src / vm / options.c
1 /* options.c - contains global options
2
3    Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4    Institut f. Computersprachen, TU Wien
5    R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
6    S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
7    J. Wenninger
8
9    This file is part of CACAO.
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License as
13    published by the Free Software Foundation; either version 2, or (at
14    your option) any later version.
15
16    This program is distributed in the hope that it will be useful, but
17    WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19    General Public License for more details.
20
21    You should have received a copy of the GNU General Public License
22    along with this program; if not, write to the Free Software
23    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24    02111-1307, USA.
25
26    Contact: cacao@complang.tuwien.ac.at
27
28    Authors: Christian Thalinger
29
30    $Id: options.c 1223 2004-06-30 19:13:00Z twisti $
31
32 */
33
34
35 #include "global.h"
36
37
38 /* command line option */
39
40 bool verbose = false;
41 bool compileall = false;
42 bool runverbose = false;       /* trace all method invocation                */
43 bool verboseexception = false;
44 bool collectverbose = false;
45
46 bool loadverbose = false;
47 bool linkverbose = false;
48 bool initverbose = false;
49
50 bool opt_rt = false;           /* true if RTA parse should be used     RT-CO */
51 bool opt_xta = false;          /* true if XTA parse should be used    XTA-CO */
52 bool opt_vta = false;          /* true if VTA parse should be used    VTA-CO */
53
54 bool opt_liberalutf = false;   /* Don't check overlong UTF-8 sequences       */
55
56 bool showmethods = false;
57 bool showconstantpool = false;
58 bool showutf = false;
59
60 bool compileverbose =  false;  /* trace compiler actions                     */
61 bool showstack = false;
62 bool showdisassemble = false;  /* generate disassembler listing              */
63 bool showddatasegment = false; /* generate data segment listing              */
64 bool showintermediate = false; /* generate intermediate code listing         */
65
66 bool useinlining = false;      /* use method inlining                        */
67 bool inlinevirtuals = false;   /* inline unique virtual methods              */
68 bool inlineexceptions = false; /* inline methods, that contain excptions     */
69 bool inlineparamopt = false;   /* optimize parameter passing to inlined methods */
70 bool inlineoutsiders = false;  /* inline methods, that are not member of the invoker's class */
71
72 bool checkbounds = true;       /* check array bounds                         */
73 bool checknull = true;         /* check null pointers                        */
74 bool opt_noieee = false;       /* don't implement ieee compliant floats      */
75 bool checksync = true;         /* do synchronization                         */
76 bool opt_loops = false;        /* optimize array accesses in loops           */
77
78 bool makeinitializations = true;
79
80 bool getloadingtime = false;   /* to measure the runtime                     */
81 bool getcompilingtime = false; /* compute compile time                       */
82
83 int has_ext_instr_set = 0;     /* has instruction set extensions */
84
85 bool opt_stat = false;
86 bool opt_verify = true;        /* true if classfiles should be verified      */
87 bool opt_eager = false;
88
89
90 /*
91  * These are local overrides for various environment variables in Emacs.
92  * Please do not remove this and leave it at the end of the file, where
93  * Emacs will automagically detect them.
94  * ---------------------------------------------------------------------
95  * Local variables:
96  * mode: c
97  * indent-tabs-mode: t
98  * c-basic-offset: 4
99  * tab-width: 4
100  * End:
101  */