PyPy를위한 설정 옵션¶
이 디렉터리에는 PyPy의 동작에 영향을 줄 수 있는 다양한 configuration옵션에 대한 문서가 들어 있습니다. 옵션에는 두 가지 주요 분류, 즉 object space options와 translation options가 있습니다.
옵션을 받는 주요 진입점은 두 가지입니다: 다른 Python 인터프리터 위에서 Python을 구현하며 모든 object space options을 받는 py.py:
./py.py <objspace options>
그리고 다음과 같은 형태의 인자를 받는 rpython/bin/rpython 변환 진입점이 있습니다:
./rpython/bin/rpython <translation options> <target>
<target>이 targetpypystandalone.py인 일반적인 경우, targetpypystandalone.py뒤에 object space options을 전달할 수 있습니다. 즉, 다음과 같습니다:
./rpython/bin/rpython <translation options> targetpypystandalone.py <objspace options>
어느 위치에든 전달할 수 있는 모든 명령줄 인자에 대한 overview가 있습니다.
더 흥미로운 객체 공간(object space) 옵션 중 다수는 Standard Interpreter Optimizations에 설명된 최적화를 가능하게 하거나, CPython에서는 거의 상상할 수 없는 객체의 생성을 허용하는데, 이는 What PyPy can do for your objects에 문서화되어 있습니다.
다음 다이어그램은 어떤 PyPy 기능이 다른 어떤 PyPy 기능과 함께 작동하는지에 대한 몇 가지 힌트를 제공합니다:
- PyPy Python interpreter options
- General translation options
- translation
- translation.continuation
- translation.type_system
- translation.backend
- translation.shared
- translation.log
- translation.gc
- translation.gctransformer
- translation.gcremovetypeptr
- translation.gcrootfinder
- translation.thread
- translation.sandbox
- translation.rweakref
- translation.jit
- translation.jit_backend
- translation.jit_profiler
- translation.check_str_without_nul
- translation.verbose
- translation.cc
- translation.profopt
- translation.profoptargs
- translation.instrument
- translation.countmallocs
- translation.countfieldaccess
- translation.fork_before
- translation.dont_write_c_files
- translation.instrumentctl
- translation.output
- translation.secondaryentrypoints
- translation.dump_static_data_info
- translation.no__thread
- translation.make_jobs
- translation.list_comprehension_operations
- translation.withsmallfuncsets
- translation.taggedpointers
- translation.keepgoing
- translation.lldebug
- translation.lldebug0
- translation.lto
- translation.icon
- translation.manifest
- translation.libname
- translation.backendopt
- translation.platform
- translation.split_gc_address_space
- translation.reverse_debugger
- translation.rpython_translate
- objspace
--opt또는-O변환 옵션