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) 옵션 가운데 상당수는 최적화를 활성화하거나 CPython에서는 거의 상상하기 어려운 객체를 만들 수 있게 해 줍니다. 이러한 최적화는 Standard Interpreter Optimizations에 설명되어 있고, 이러한 객체는 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변환 옵션