]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/params.def
* src/ios.cc [_GLIBCPP_HAVE_UNISTD_H]: Include unistd.h.
[thirdparty/gcc.git] / gcc / params.def
CommitLineData
9a33a2e8 1/* params.def - Run-time parameters.
2 Copyright (C) 2001 Free Software Foundation, Inc.
3 Written by Mark Mitchell <mark@codesourcery.com>.
4
f12b58b3 5This file is part of GCC.
9a33a2e8 6
f12b58b3 7GCC is free software; you can redistribute it and/or modify it under
8the terms of the GNU General Public License as published by the Free
9Software Foundation; either version 2, or (at your option) any later
10version.
9a33a2e8 11
f12b58b3 12GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13WARRANTY; without even the implied warranty of MERCHANTABILITY or
14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15for more details.
9a33a2e8 16
17You should have received a copy of the GNU General Public License
f12b58b3 18along with GCC; see the file COPYING. If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA
2002111-1307, USA.
9a33a2e8 21
22*/
23
24/* This file contains definitions for language-independent
25 parameters. The DEFPARAM macro takes 4 arguments:
26
21b80b12 27 - The enumeral corresponding to this parameter.
9a33a2e8 28
29 - The name that can be used to set this parameter using the
30 command-line option `--param <name>=<value>'.
31
32 - A help string explaining how the parameter is used.
33
a5d654e2 34 - A default value for the parameter.
35
36 Be sure to add an entry to invoke.texi summarizing the parameter. */
9a33a2e8 37
6cc4057d 38/* The single function inlining limit. This is the maximum size
39 of a function counted in internal gcc instructions (not in
40 real machine instructions) that is eligible for inlining
41 by the tree inliner.
42 The default value is 300.
43 Only functions marked inline (or methods defined in the class
44 definition for C++) are affected by this, unless you set the
45 -finline-functions (included in -O3) compiler option.
46 There are more restrictions to inlining: If inlined functions
47 call other functions, the already inlined instructions are
48 counted and once the recursive inline limit (see
49 "max-inline-insns" parameter) is exceeded, the acceptable size
50 gets decreased. */
51DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
52 "max-inline-insns-single",
53 "The maximum number of instructions in a single function eliglible for inlining",
54 300)
55
56/* The repeated inlining limit. After this number of instructions
57 (in the internal gcc representation, not real machine instructions)
58 got inlined by repeated inlining, gcc starts to decrease the maximum
59 number of inlinable instructions in the tree inliner.
60 This is done by a linear function, see "max-inline-slope" parameter.
61 It is necessary in order to limit the compile-time resources, that
62 could otherwise become very high.
63 It is recommended to set this value to twice the value of the single
64 function limit (set by the "max-inline-insns-single" parameter) or
65 higher. The default value is 600.
66 Higher values mean that more inlining is done, resulting in
67 better performance of the code, at the expense of higher
68 compile-time resource (time, memory) requirements and larger
69 binaries.
70 This parameters also controls the maximum size of functions considered
71 for inlining in the RTL inliner. */
9a33a2e8 72DEFPARAM (PARAM_MAX_INLINE_INSNS,
73 "max-inline-insns",
6cc4057d 74 "The maximuem number of instructions by repeated inlining before gcc starts to throttle inlining",
b41b0259 75 600)
9a33a2e8 76
6cc4057d 77/* After the repeated inline limit has been exceeded (see
78 "max-inline-insns" parameter), a linear function is used to
79 decrease the size of single functions eligible for inlining.
80 The slope of this linear function is given the negative
81 reciprocal value (-1/x) of this parameter.
82 The default vlue is 32.
83 This linear function is used until it falls below a minimum
84 value specified by the "min-inline-insns" parameter. */
85DEFPARAM (PARAM_MAX_INLINE_SLOPE,
86 "max-inline-slope",
87 "The slope of the linear funtion throttling inlining after the recursive inlining limit has been reached is given by the negative reciprocal value of this parameter",
88 32)
89
90/* When gcc has inlined so many instructions (by repeated
91 inlining) that the throttling limits the inlining very much,
92 inlining for very small functions is still desirable to
93 achieve good runtime performance. The size of single functions
94 (measured in gcc instructions) which will still be eligible for
95 inlining then is given by this parameter. It defaults to 130.
96 Only much later (after exceeding 128 times the recursive limit)
97 inlining is cut down completely. */
98DEFPARAM (PARAM_MIN_INLINE_INSNS,
99 "min-inline-insns",
100 "The number of instructions in a single functions still eligible to inlining after a lot recursive inlining",
101 130)
102
21b80b12 103/* The maximum number of instructions to consider when looking for an
104 instruction to fill a delay slot. If more than this arbitrary
105 number of instructions is searched, the time savings from filling
106 the delay slot will be minimal so stop searching. Increasing
107 values mean more aggressive optimization, making the compile time
108 increase with probably small improvement in executable run time. */
109DEFPARAM (PARAM_MAX_DELAY_SLOT_INSN_SEARCH,
110 "max-delay-slot-insn-search",
111 "The maximum number of instructions to consider to fill a delay slot",
112 100)
113
98d5e888 114/* When trying to fill delay slots, the maximum number of instructions
115 to consider when searching for a block with valid live register
116 information. Increasing this arbitrarily chosen value means more
117 aggressive optimization, increasing the compile time. This
118 parameter should be removed when the delay slot code is rewritten
119 to maintain the control-flow graph. */
120DEFPARAM(PARAM_MAX_DELAY_SLOT_LIVE_SEARCH,
121 "max-delay-slot-live-search",
122 "The maximum number of instructions to consider to find accurate live register information",
123 333)
124
85de291e 125/* This parameter limits the number of branch elements that the
424da949 126 scheduler will track anti-dependencies through without resetting
85de291e 127 the tracking mechanism. Large functions with few calls or barriers
424da949 128 can generate lists containing many 1000's of dependencies. Generally
85de291e 129 the compiler either uses all available memory, or runs for far too long. */
130DEFPARAM(PARAM_MAX_PENDING_LIST_LENGTH,
131 "max-pending-list-length",
132 "The maximum length of scheduling's pending operations list",
133 32)
134
9159979b 135/* The GCSE optimization will be disabled if it would require
136 significantly more memory than this value. */
137DEFPARAM(PARAM_MAX_GCSE_MEMORY,
138 "max-gcse-memory",
139 "The maximum amount of memory to be allocated by GCSE",
140 50 * 1024 * 1024)
9cb8e99f 141/* The number of repetitions of copy/const prop and PRE to run. */
d023fd14 142DEFPARAM(PARAM_MAX_GCSE_PASSES,
143 "max-gcse-passes",
144 "The maximum number of passes to make when doing GCSE",
145 1)
0b11ae2e 146
147/* This parameter limits the number of insns in a loop that will be unrolled,
148 and by how much the loop is unrolled. */
149DEFPARAM(PARAM_MAX_UNROLLED_INSNS,
150 "max-unrolled-insns",
151 "The maximum number of instructions to consider to unroll in a loop",
152 100)
429fa7fa 153
154DEFPARAM(HOT_BB_COUNT_FRACTION,
155 "hot-bb-count-fraction",
fa99ab3d 156 "Select fraction of the maximal count of repetitions of basic block in \
157program given basic block needs to have to be considered hot",
429fa7fa 158 10000)
159DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
160 "hot-bb-frequency-fraction",
fa99ab3d 161 "Select fraction of the maximal frequency of executions of basic \
162block in function given basic block needs to have to be considered hot",
429fa7fa 163 1000)
fa99ab3d 164DEFPARAM(TRACER_DYNAMIC_COVERAGE_FEEDBACK,
165 "tracer-dynamic-coverage-feedback",
166 "The percentage of function, weighted by execution frequency, that \
167must be covered by trace formation. Used when profile feedback is available",
168 95)
169DEFPARAM(TRACER_DYNAMIC_COVERAGE,
170 "tracer-dynamic-coverage",
171 "The percentage of function, weighted by execution frequency, that \
172must be covered by trace formation. Used when profile feedback is not available",
173 75)
174DEFPARAM(TRACER_MAX_CODE_GROWTH,
175 "tracer-max-code-growth",
176 "Maximal code growth caused by tail duplication (in percents)",
177 100)
178DEFPARAM(TRACER_MIN_BRANCH_RATIO,
179 "tracer-min-branch-ratio",
180 "Stop reverse growth if the reverse probability of best edge is less \
181than this threshold (in percents)",
182 10)
183DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK,
184 "tracer-min-branch-probability-feedback",
185 "Stop forward growth if the probability of best edge is less than \
186this threshold (in percents). Used when profile feedback is available",
187 30)
188DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
189 "tracer-min-branch-probability",
190 "Stop forward growth if the probability of best edge is less than \
191this threshold (in percents). Used when profile feedback is not available",
192 50)
2a3edec5 193
194#ifdef ENABLE_GC_ALWAYS_COLLECT
195# define GGC_MIN_EXPAND_DEFAULT 0
196#else
197# define GGC_MIN_EXPAND_DEFAULT 30
198#endif
199
200DEFPARAM(GGC_MIN_EXPAND,
201 "ggc-min-expand",
202 "Minimum heap expansion to trigger garbage collection, as \
203a percentage of the total size of the heap.",
204 GGC_MIN_EXPAND_DEFAULT)
205
206#undef GGC_MIN_EXPAND_DEFAULT
207
208DEFPARAM(GGC_MIN_HEAPSIZE,
209 "ggc-min-heapsize",
210 "Minimum heap size before we start collecting garbage, in kilobytes.",
211 4096)
212
9a33a2e8 213/*
214Local variables:
215mode:c
216End: */