# PyPy Configuration[translation.gc]

PyPy Configuration[translation.gc]
general documentation config index command-line overview

# translation.gc

Contents

- Basic Option Information
- Description

back to parent

# Basic Option Information

- name: gc
- description: Garbage Collection Strategy
- command-line: --gc
- option type: choice option
- possible values:
  - boehm
  - ref
  - framework
  - none
  - stacklessgc
  - exact_boehm
- default: ref
- requirements:
  - value 'stacklessgc' requires:
    - translation.stackless to be set to 'True'

# Description

Choose the Garbage Collector used by the translated program:

> - "ref": reference counting. Takes very long to translate and the result is slow.
> - "framework": our custom mark-and-sweep collector. Takes moderately long and is the fastest option without external dependencies.
> - "stacklessgc": same as "framework" but uses a different method to find the garbage collection roots on the stack, by unwinding it, using stackless: --stackless.
> - "boehm": use the Boehm conservative GC