Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM
| From: | Andi Gutmans | Date: | Wed, 15 Sep 2004 06:50:50 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / README.ZEND_VM | ||
| References: | 1 2 3 4 5 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-2975@lists.php.net to get a copy of this message | ||
At 08:37 AM 9/15/2004 +0200, Thies C. Arntzen wrote:
On Tue, 14 Sep 2004 22:25:14 -0700, Andi Gutmans <andi@zend.com> wrote: At 04:23 PM 9/14/2004 -0700, Andrei Zmievski wrote:Well in general, even non-specialized code is hard to debug when it's in a switch()/goto executor although we handled it quite well inPHP 4. The specialized code isn't that much harder because it's still very similar to the original code. Now except for some core problems with the specializer you could always switch to a function handler model for debugging to make your life easier.On Sat, 11 Sep 2004, Marcus Boerger wrote:important at allHello Andi, compiler caches and optimizers. Overloading opcodes is notThat's a pretty absolute statement, Marcus..Personally I don't think it's that important either but due to popular demand we'll see if we can have two execution engines in the same build so you can choose between "fastest" and function handlers. a few remarks: - the function-based executor would not only allow for opcode-overloading but also for opcode (and line) based profiling and execution tracing. - i'm impressed with your CPP magic. but at the end of the day we end up with un-debuggable code. (am i have traced thru the executor).
i would suggest to write the instructions in a special-formatted file and then let some php-script generate real C executor loop(s) from that. that's pretty much how eg parrot does it.That is how a prototype of ours did it but in my opinion it is much more maintainable to use the preprocessor than do that. The generator script was very complicated and much harder to maintain. Andi