You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the above function call is loaded into the REPL, the JIT produces code that looks like this:
mov 3, ARG0
mov 10, ARG1
call _libfunc
So the JIT is expecting some assembly label called _libfunc to exist, and will call it directly.
This is what supported-vm-packages does. For the packages listed under supported-vm-packages, the compiler expects the libraries containing those labels libfunc, libglobal, etc... to be directly statically linked together with the REPL.
Metaphor with Python
If you attempt to import an OpenGL library in Python, you would need opengl.dll somewhere on your system or else Python will complain that the library cannot be found.
What if you want to build a custom version of Python that has OpenGL directly bundled with it, all in the same executable? So that the Python interpreter directly knows how to handle OpenGL calls, without the user requiring opengl.dll?
Python has its own equivalent to the supported-vm-packages to support this bundling option.
The text was updated successfully, but these errors were encountered:
From @CuppoJava
What does supported-vm-packages do?
Here is how a user declares an extern function or variable:
And here is how they are called from Stanza:
When the above function call is loaded into the REPL, the JIT produces code that looks like this:
So the JIT is expecting some assembly label called _libfunc to exist, and will call it directly.
This is what supported-vm-packages does. For the packages listed under supported-vm-packages, the compiler expects the libraries containing those labels libfunc, libglobal, etc... to be directly statically linked together with the REPL.
Metaphor with Python
If you attempt to import an OpenGL library in Python, you would need opengl.dll somewhere on your system or else Python will complain that the library cannot be found.
What if you want to build a custom version of Python that has OpenGL directly bundled with it, all in the same executable? So that the Python interpreter directly knows how to handle OpenGL calls, without the user requiring opengl.dll?
Python has its own equivalent to the supported-vm-packages to support this bundling option.
The text was updated successfully, but these errors were encountered: