[swift-evolution] [Announcement] Godbolt Compiler Explorer adds Swift support

Alex Blewitt alblue at apple.com
Fri Jun 23 03:35:23 CDT 2017


If you're interested in just having a look at SIL output, then I put a very basic GUI wrapper around invocations of swiftc -emit-sil and friends:

https://github.com/alblue/SILInspector <https://github.com/alblue/SILInspector>

It also supports piping them through the demangler and whether or not to enable optimisations, so you can see the effect of the options on the generated code. In addition, it prints out the command that is run at the bottom so you can do the same yourself outside of the GUI.

Alex

> On 23 Jun 2017, at 02:58, Kevin Ballard via swift-evolution <swift-evolution at swift.org> wrote:
> 
> That's pretty cool.
> 
> Any plans on adding support for looking at the SIL output?
> 
> -Kevin Ballard
> 
> On Thu, Jun 22, 2017, at 10:24 AM, Adam Nemecek via swift-evolution wrote:
>> Howdy,
>> Matt Godbolt and I have added Swift support to his compiler explorer project
>> 
>> https://swift.godbolt.org/ <https://swift.godbolt.org/>
>> 
>> It let's you interactively explore assembly emitted by the Swift compiler. 
>> 
>> Right now, if you want the compiler to emit Intel syntax instructions, pass "-emit-assembly -Xllvm --x86-asm-syntax=intel" to the compiler as a command line argument in the text field in the top right corner.
>> 
>> Note that right now it's might still be kinda rough around the edges.
>> 
>> You can contribute to the project here https://github.com/mattgodbolt/compiler-explorer <https://github.com/mattgodbolt/compiler-explorer>
>> 
>> Adam
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170623/0bf15f98/attachment.html>


More information about the swift-evolution mailing list