-
Notifications
You must be signed in to change notification settings - Fork 4
CH09: whole program compiler driver #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The next iteration of the code is ready. The code now generates qualified names for the calls and also captures and prints global calls such that they can be used to determine the call graph and compilation order.
For now I have chosen to include the ast for each Next step will be to use |
As title
As title
As title
9333be3
to
bf43da6
Compare
As title
As title
As title
As title
As title
As title
As title
this chapter has now been converted to the jupyter format used by the other chapters. Also, we can now connect call graphs across class attributes using the provided type annotations. I have tested both the ipynb and also the html variants. Also, this includes a modification of the Technically, this does not yet "work" in the sense that an actual program can be compiled. The completion of that capability is still waiting on: a) An interface to the new jit compiler that can take an b) A solution as to what to do with the Essentially, in order to make this a "working" compiler, some more blanks must be filled in, but the overall structure to analyse the source code and extract the information required to perform the compile of the functions in a python module is implemented. |
Next attempt at the whole program compiler.
For the program at:
https://gist.github.com/sklam/13c0646a4e6b2d401b731835629b1be4
this currently produces.