Permalink
Browse files

Document how to run opy/callgraph.py

  • Loading branch information...
andychu committed Jun 25, 2018
1 parent e371479 commit 14df02e0d28416902621cf97f56617a3a84ce125
Showing with 9 additions and 0 deletions.
  1. +9 −0 opy/README.md
View
@@ -102,6 +102,15 @@ Notes on Three OPy Builds
- `$REPO_ROOT/opy/_tmp/regtest`: The snapshot of Python files in `opy/_regtest`
are compiled, so we are insensitive to repo changes. Built by `./regtest.sh
compile`.
opy/callgraph.py demo
------------------
This is currently completely separate than the rest of the OPy compiler. The idea is to find the exact set of symbols that the compiler needs to handle by walking a static callgraph using bytecode disassembly heuristics. This means that if we `import os`, we don't need to compile everything in `os.py`, etc.
oil$ scripts/count.sh oil-python-symbols
oil$ scripts/count.sh opy-python-symbols
OPy Compiler Divergences from CPython
----------------------------

0 comments on commit 14df02e

Please sign in to comment.