[pypy-svn] r16445 - pypy/dist/pypy/translator/goal
ericvrp at codespeak.net
ericvrp at codespeak.net
Thu Aug 25 11:06:23 CEST 2005
Author: ericvrp
Date: Thu Aug 25 11:06:22 2005
New Revision: 16445
Modified:
pypy/dist/pypy/translator/goal/translate_pypy.py
Log:
Added -fork2 option that forks just before backend code generation
Modified: pypy/dist/pypy/translator/goal/translate_pypy.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate_pypy.py (original)
+++ pypy/dist/pypy/translator/goal/translate_pypy.py Thu Aug 25 11:06:22 2005
@@ -18,6 +18,7 @@
-no-o Don't do backend-oriented optimizations
-no-c Don't generate the C code
-fork (UNIX) Create a restartable checkpoint after annotation
+ -fork2 (UNIX) Create a restartable checkpoint after specializing
-llvm Use LLVM instead of C
-c Generate the C code, but don't compile it
-boehm Use the Boehm collector when generating C code
@@ -143,6 +144,9 @@
if not options['-no-o'] and not options['-llvm']:
print 'Back-end optimizations...'
t.backend_optimizations()
+ if a and options['-fork2']:
+ from pypy.translator.goal import unixcheckpoint
+ unixcheckpoint.restartable_point(auto='run')
if a:
t.frozen = True # cannot freeze if we don't have annotations
@@ -346,6 +350,7 @@
'-load': False,
'-save': False,
'-fork': False,
+ '-fork2': False,
'-llinterpret': False,
'-batch': False,
}
More information about the Pypy-commit
mailing list