-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Assembly libraries #13472
Comments
Do you agree that this is a duplicate of #9282? So given that I think there's no need for assembly libraries as special construct and file-level assembly blocks are the simpler and more consistent option for this. I'll go ahead and close this as duplicate and maybe re-triage #9282 - but if you disagree, feel free to reopen! |
@ekpyron any idea when we could have any of these? |
As @ekpyron said, we're going to retriage #9282, which will involve figuring out where it fits in our short- and long-term roadmap. So no decision yet but the way I see it personally: there are enough important features in the short-term that we won't get to it very soon but it's also important enough to be considered a core feature and be somewhere on the roadmap. Unless... @chriseth did you consider #9282 to be a part of #13319? :) |
A global assembly block would also only allow function declarations in it (I don't see what anything but function definitions in them would mean) - and those would be globally available. Given that - what remaining advantage would assembly libraries have concretely? |
I.e. from what I understand the plan to have global assembly blocks is exactly your suggestion of assembly libraries minus namespaces - and the issue of namespaces is best solved uniformly together with namespacing free functions, etc., isn't it? |
Abstract
We have assembly/yul functions but can't reuse them among assembly blocks. Let's have assembly libraries!
Motivation
Would allow us to reuse assembly code
Specification
Let's have it like this:
and use it like this:
Backwards Compatibility
Not required
The text was updated successfully, but these errors were encountered: