add rdoc.
[ruby-svn.git] / vm_opts.h
blob2bb9ee6bb0a09cb676f3abfc8b335d08bfc40fbd
1 /*-*-c-*-*/
2 /**********************************************************************
4 vm_opts.h - VM optimize option
6 $Author$
8 Copyright (C) 2004-2007 Koichi Sasada
10 **********************************************************************/
13 #ifndef RUBY_VM_OPTS_H
14 #define RUBY_VM_OPTS_H
16 /* Compile options.
17 * You can change these options at runtime by VM::CompileOption.
18 * Following definitions are default values.
21 #define OPT_TRACE_INSTRUCTION 0
22 #define OPT_TAILCALL_OPTIMIZATION 0
23 #define OPT_PEEPHOLE_OPTIMIZATION 1
24 #define OPT_SPECIALISED_INSTRUCTION 1
25 #define OPT_INLINE_CONST_CACHE 1
28 /* Build Options.
29 * You can't change these options at runtime.
32 /* C compiler depend */
33 #define OPT_DIRECT_THREADED_CODE 1
34 #define OPT_TOKEN_THREADED_CODE 0
35 #define OPT_CALL_THREADED_CODE 0
37 /* VM running option */
38 #define OPT_CHECKED_RUN 1
39 #define OPT_INLINE_METHOD_CACHE 1
40 #define OPT_BLOCKINLINING 0
42 /* architecture independent, affects generated code */
43 #define OPT_OPERANDS_UNIFICATION 0
44 #define OPT_INSTRUCTIONS_UNIFICATION 0
45 #define OPT_UNIFY_ALL_COMBINATION 0
46 #define OPT_STACK_CACHING 0
48 /* misc */
49 #define SUPPORT_JOKE 0
51 #endif /* RUBY_VM_OPTS_H */