From: "Martin Stjernholm, Roxen IS @ Pike developers forum"
To: pike-devel@lists.lysator.liu.se Subject: Can I get detailed documents about Pike languages design Date: Thu, 13 Nov 2003 05:30:01 +0100 (CET)
Nice to hear. Unfortunately there isn't much in the way of core docs, so you're pretty much left with investigating the source and the commentary in it. I have at least added a manifest for the files in the src directory now (in 7.5 - please check it out from the anonymous cvs) so that you'll get a little help in finding your way there.
Anyway, the compiler is fairly straightforward in principle (two pass, lexer, LALR parser, abstract syntax tree, tree optimizer, opcode generator, peephole optimizer) so provided you know standard compiler theory it's mostly a matter of learning where the stuff is and what it's called. The exceptions to that are mainly how the resolver works and what's done in the different passes, I suspect. You can always ask questions here; at least I will do my best to answer.
Do you have anything specific in mind that you want to do?
/ Martin Stjernholm, Roxen IS
Thank you very much. I have not special idea about Pike design yet, because I am not familiar with the design principle of Pike, which is my current task to be done. In the furture, I hope to do some optimization on Pike. I did some interprocedural analysis and optimization for academic research. But I think this method is not adapt to Pike, which is complex, results in lower compiling effeciency, and mainly applied to compiled languages. Maybe from other open interpreted languages, we can get some inspiration to do it.
David
_________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn