-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add "builtin" macros to the assembly #4
Comments
Should we differentiate between functions, like |
We could use |
There's also two possible use cases here:
I'm inclined for |
I think there are actually three cases:
I like As for (2)... I think I'm partial to I think we want user-defined macros that generate instructions to look the same as the include macros. I don't know if that means using a |
Add a couple constant functions to the assembly to make it easier to write. For example (signatures to be bike-shedded):
selector(...)
include(...)
selector(...)
Description
selector(...)
is replaced by the function selector of the given solidity function signature.Example
include(...)
include(...)
is replaced by the opcodes (and constants, etc) from the given path. Only valid outside of an opcode.Example
main.evm
other.evm
Output
The text was updated successfully, but these errors were encountered: