- 论坛徽章:
- 0
|
在一些特殊环境中需要用到这些参数,否则gcc拼命申请内存- ggc-min-expand
- GCC uses a garbage collector to manage its own memory alloca-
- tion. This parameter specifies the minimum percentage by which
- the garbage collector’s heap should be allowed to expand
- between collections. Tuning this may improve compilation
- speed; it has no effect on code generation.
- The default is 30% + 70% * (RAM/1GB) with an upper bound of
- 100% when RAM >= 1GB. If "getrlimit" is available, the notion
- of "RAM" is the smallest of actual RAM and "RLIMIT_DATA" or
- "RLIMIT_AS". If GCC is not able to calculate RAM on a particu-
- lar platform, the lower bound of 30% is used. Setting this
- parameter and ggc-min-heapsize to zero causes a full collection
- to occur at every opportunity. This is extremely slow, but can
- be useful for debugging.
- ggc-min-heapsize
- Minimum size of the garbage collector’s heap before it begins
- bothering to collect garbage. The first collection occurs
- after the heap expands by ggc-min-expand% beyond ggc-min-heap-
- size. Again, tuning this may improve compilation speed, and
- has no effect on code generation.
复制代码 |
|