-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Zend] Update README.md with new Zend VM executors #8008
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,14 +126,13 @@ definitions. It is included from `zend_compile.h`. The second one is an executor | |
code itself. It is included from `zend_execute.c`. | ||
|
||
`zend_vm_gen.php` can produce different kind of executors. You can select | ||
different opcode threading model using `--with-vm-kind=CALL|SWITCH|GOTO`. You | ||
can disable opcode specialization using `--without-specializer`. You can include | ||
or exclude old executor together with specialized one using | ||
`--without-old-executor`. At last you can debug executor using original | ||
`zend_vm_def.h` or generated file `zend_vm_execute.h`. Debugging with original | ||
file requires `--with-lines` option. By default ZE2 uses the following command | ||
to generate executor: | ||
different opcode threading model using `--with-vm-kind=CALL|SWITCH|GOTO|HYBRID`. | ||
You can disable opcode specialization using `--without-specializer`. | ||
At last you can debug executor using original `zend_vm_def.h` or generated file | ||
stkeke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`zend_vm_execute.h`. Debugging with original file requires `--with-lines` option. | ||
stkeke marked this conversation as resolved.
Show resolved
Hide resolved
|
||
By default ZE3 (since PHP 7) uses the following command to generate executor: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As of PHP 8.0.0, it is ZE4. Might be better to omit the version, and just say "Zend Engine". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cmb69 I can make a new patch to update README.md as your comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. New README update PR is here: #8057 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we can replace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it. Thanks @cmb69 for the clarification. |
||
|
||
```bash | ||
php zend_vm_gen.php --with-vm-kind=CALL | ||
# Default VM kind is HYBRID | ||
php zend_vm_gen.php --with-vm-kind=HYBRID | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.