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

Add local Compiler Explorer feature #395

Open
adlerjohn opened this issue Nov 16, 2021 · 3 comments
Open

Add local Compiler Explorer feature #395

adlerjohn opened this issue Nov 16, 2021 · 3 comments
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request forc

Comments

@adlerjohn
Copy link
Contributor

adlerjohn commented Nov 16, 2021

I'd like to run something like forc godbolt and have it launch a local instance of Compiler Explorer so I can inspect how the Sway source code maps to asm with different compiler options. Doesn't have to be Compiler Explorer, or even in the browser if IDEs can do it.

Maybe blocked by source mapping #70.

@adlerjohn adlerjohn added enhancement New feature or request compiler General compiler. Should eventually become more specific as the issue is triaged forc labels Nov 16, 2021
@m-fawaz
Copy link
Contributor

m-fawaz commented Jan 16, 2022

In a dream world, we would have a nightly build of the Sawy compiler accessible through a public godbolt link just like https://rust.godbolt.org/ - Imagine sway.godbolt.org where developers can easily look at the generated assembly.

Do we know if this realistic? Some information on that here: https://github.com/compiler-explorer/compiler-explorer/blob/main/docs/AddingALanguage.md

I've always found godbolt links incredibly useful, not just for looking at assembly, but also for sharing code and for quickly prototyping something.

@adlerjohn
Copy link
Contributor Author

We don't really need a nightly build, do we? We do tag releases, so simply having each release of forc should suffice methinks.

@m-fawaz
Copy link
Contributor

m-fawaz commented Jan 16, 2022

We don't really need a nightly build, do we? We do tag releases, so simply having each release of forc should suffice methinks.

True - as we're tagging releases often, nightlies are probably an overkill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler General compiler. Should eventually become more specific as the issue is triaged enhancement New feature or request forc
Projects
None yet
Development

No branches or pull requests

2 participants