Sunday, June 06, 2004
The PHP Bytecode Generator Component
The plan for spewing out PHP bytecode is:
1. alter the php zend_execute file
2. get it to emit bytecode to STDOUT rather than executing
3. Use some sort of bytecode interpreter for Win32 to get assembly instructions (.asm file) and continue with intended architechture.
This approach seems very similar to how Parrot is being done. However, they are using their own assembly language.
So far, i haven't been able to locate a bytecode interpreter, may have to make one if it is unavailable.
However, several Linkers are available, esp for use within MS VC++. Kept in mind to be looked at later.
Conclusion: It seems like i'm creating a PHP Virtual Machine, similar to JVM. What do u think? I know it accomplishes the objective, but can it still be considered a true compiler?
Comments:
<< Home
Languages....
one Bytecode to port them all
and in standard format bind them
One Compiler to rule em all
and Just in Time Compile them...
(with appologies to the parrot guys)
one Bytecode to port them all
and in standard format bind them
One Compiler to rule em all
and Just in Time Compile them...
(with appologies to the parrot guys)
You're not making a VM. U get an executable as the output of the process!
3. You say "use some kind of ......." well thats the component you have to make!
Post a Comment
3. You say "use some kind of ......." well thats the component you have to make!
<< Home

