-
Notifications
You must be signed in to change notification settings - Fork 59
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
Export global constants #968
Comments
Can we ensure that g will not be modified external code ? |
What’s the motivation? |
I asked about this; I wanted to have a file for "API constants" as follows:
Jasmin could print the values of the constants above when invoked as |
Easy workaround: you can define functions that simply return the values of these constants. |
I was hoping for a way to get the constants at compile-time, but yes I can do it this way, it's no big deal. |
The thing is that it is difficult to have both 1) the ability to refer to constants from the outside and 2) the possibility of building shared libraries. |
Related PR turning off the export of global data: #41 |
Could we add assembler directives to export global variables? For instance, for
it would be good to be able to access
g
from C.The text was updated successfully, but these errors were encountered: