Friday 15 May 2015

common lisp - Phases SBCL compiler -


I can not find any source that will describe individual steps SBCL Compiler What resources, such as papers, of the SBCL compiler Describe the steps?

The description of starting a good SBCL Internal in Phil Khung's article about the compiler In the section, he writes,

Finding where the compiler lives

It's just a little more work to work on the compiler. I think the best way is to src / Go to compiler / main.lisp and find compile-component . Highly optimized (or we get tired of waiting) on ​​a component ir1-phases to the ends and fixed point while the % compile-component handles conversion in IR2 And then the compilation pipeline has actually changed since the Python paper is written for machine code, and subfaces each have their own function (and file). M. On interesting points, probably the best way at the level of IR2.

The Python paper has been mentioned which is added to the article earlier:

Search of the source

People try to read the source like a book, and, once they discover that there are so many codes, try to understand a good order to read the source I do not think the best way is to use SBCL Very big, and I suspect that at any time in your head Keeps the whole system. Still useful as an overview, and is a good complement. Once you come close to the bootstrapping logic, it helps to understand the exclamation points. In the past, I believe this is a priority [such a] priority to start small, to know enough to complete the current work, and accept that some things work only, without asking how now).

You are most interested in the Python compiler for CMU Common Lisp in the section 8, compilation phase .

No comments:

Post a Comment