-
Notifications
You must be signed in to change notification settings - Fork 177
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
How to load the byte code generated by v7_compile? #576
Comments
After review the code I found the |
hi! currently v7_exec_file will recognize the header of the precompiled file (filename extension is not significant): $ ./v7 -c test.js >test.jsc
$ ./v7 test.jsc Do you need to exec a precompiled script from memory? |
Yes. What I want to is to execute the bytecode from memory. I have wrapped another interface It would be perfect If the the interface could be official supported.
|
yes, it makes sense; there are other reasons where the user doesn't have a null terminated string. The rest of the API always accepts string+len |
Requested in cesanta/v7#576 PUBLISHED_FROM=f950c3ef6db3d69a54e1588544f6f84570584a66
Requested in #576 PUBLISHED_FROM=f950c3ef6db3d69a54e1588544f6f84570584a66
Can I pre-compile the javascript code via
v7_compile
and then directly load the byte code and execute? I haven't found any interface that could deal with the generate byte code.The text was updated successfully, but these errors were encountered: