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

Kevin Ballard kevin at sb.org
Fri Jun 23 12:44:17 CDT 2017


I have a Vim plugin that does basically the same thing. It would just be
nice to have it in something like Godbolt so you can share with others
(and especially if it can highlight the SIL corresponding with a given
line like it does for assembly).
-Kevin Ballard

On Fri, Jun 23, 2017, at 01:35 AM, Alex Blewitt wrote:
> 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
> 
> 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/
>>> 
>>> 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>>> 
>>> Adam
>>> _________________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org
>>> 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/a17bc5ae/attachment.html>


More information about the swift-evolution mailing list