[pypy-svn] r38166 - pypy/dist/pypy/doc
antocuni at codespeak.net
antocuni at codespeak.net
Thu Feb 8 16:36:50 CET 2007
Author: antocuni
Date: Thu Feb 8 16:36:49 2007
New Revision: 38166
Modified:
pypy/dist/pypy/doc/getting-started.txt
Log:
Update gencli sections in getting-started.
Modified: pypy/dist/pypy/doc/getting-started.txt
==============================================================================
--- pypy/dist/pypy/doc/getting-started.txt (original)
+++ pypy/dist/pypy/doc/getting-started.txt Thu Feb 8 16:36:49 2007
@@ -478,10 +478,9 @@
Translating the flow graph to CLI code
++++++++++++++++++++++++++++++++++++++
-The CLI backend aim to translate RPython code into .NET executables:
-it is still work-in-progress, but it is already somewhat usable for
-small snippets of code since it supports classes, list, dictionaries,
-and strings. You can try out the CLI backend from the interactive
+Use the CLI backend to translate the flowgraphs into .NET executables:
+``gencli`` is quite mature now and can also compile the whole
+interpreter. You can try out the CLI backend from the interactive
translator shell::
>>> def myfunc(a, b): return a+b
@@ -626,6 +625,30 @@
./translate.py --text --batch --backend=llvm --raisingop2direct_call targetpypystandalone.py
+Translating using the CLI backend
++++++++++++++++++++++++++++++++++
+
+To create a standalone .NET executable using the CLI backend::
+
+ ./translate.py --text --batch --backend=cli targetpypystandalone.py
+
+The executable and all its dependecies will be stored in the
+./pypy-cli-data directory. To run pypy.NET, you can run
+./pypy-cli-data/main.exe. If you are using Linux or Mac, you can use
+the convenience ./pypy-cli script::
+
+ $ ./pypy-cli
+ debug: entry point starting
+ debug: argv ->
+ debug: importing code
+ debug: calling code.interact()
+ Python 2.4.1 (pypy 0.9.0 build 38134) on linux2
+ Type "help", "copyright", "credits" or "license" for more information.
+ (InteractiveConsole)
+ >>>> 1 + 1
+ 2
+ >>>>
+
.. _`start reading sources`:
Where to start reading the sources
More information about the Pypy-commit
mailing list