Skip to content
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

Allow compilation starting from a Solc AST #7087

Closed
rocky opened this issue Jul 11, 2019 · 3 comments
Closed

Allow compilation starting from a Solc AST #7087

rocky opened this issue Jul 11, 2019 · 3 comments

Comments

@rocky
Copy link
Contributor

rocky commented Jul 11, 2019

Abstract

There may be situations where compiling staring from a solcAST is advantageous.

Motivation

Here are two potential use cases. The first which is my main motivation for mentioning is that in IDEs where a program is getting developed the expected pattern is many failed compiles as one is developing the program followed by one last full compile.

For failed compiles, right now I am turning off all optimization, and disabling all output except the AST. It may even be that adding a command-line switch would make "no output after AST" more explicit.

In the last full compile though optimization and so on are desired. So there might be a small benefit here, in saving time.

However the other use is to allow other kinds of frontends, preprocessors, language to work that allow people to experiment with solidity without having to write in C++ and work on the Solidity code base.

Specification

Will be filled in if this moves forward.

Backwards Compatibility

This should be completely backwards compatible.

@chriseth
Copy link
Contributor

Duplicate: #2096

@chriseth
Copy link
Contributor

Please feel free to add your motivation there.

@rocky
Copy link
Contributor Author

rocky commented Jul 11, 2019

Good to see that this is already in the queue. I thought I looked but didn't see it when opening this issue. Sorry.

Please feel free to add your motivation there.

What's there is sufficient. And that issue links back to this. So I'm good here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants