# PSA: godbolt/compiler-explorer updates

**URL:** <https://forums.swift.org/t/psa-godbolt-compiler-explorer-updates/77556>\
**Category:** Using Swift\
**Created:** [January 30, 2025, 3:59am UTC](https://forums.swift.org/t/psa-godbolt-compiler-explorer-updates/77556 "2025-01-30T03:59:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jamieQ](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jamieq/32/5117_2.png) [@jamieQ](https://forums.swift.org/u/jamieQ)\
**Post date:** [March 4, 2025, 2:48am UTC](https://forums.swift.org/t/psa-godbolt-compiler-explorer-updates/77556/4 "2025-03-04T02:48:00Z")

</div>

> [@Finagolfin](#):
>
> Thanks, we should [use the Musl SDK to allow that site to support displaying Swift's AArch64 codegen](https://github.com/compiler-explorer/compiler-explorer/issues/566) too.

as the compiler-explorer site appears to have updated today, the changes\[1\] to add a new swift compiler configuration to display aarch64 assembly are now live. you can test it out by selecting a compiler from the 'swift (aarch64)' group in the dropdown menu (e.g. like [this](https://swift.godbolt.org/z/ch4rhTMo7)).

this new configuration works by invoking the corresponding x86 compiler with the additional arguments for cross compiling via the Musl SDK implicitly added to the `swiftc` invocation. currently, only the 6.0 release compiler supports this cross compilation mode, but once we figure [this](https://forums.swift.org/t/static-linux-sdk-build-artifact-questions/78043) out, i think we should be able to get something analogous working for the development branches too.

as an aside – thanks to those of you who contributed ideas over the years in the associated [feature request thread](https://github.com/compiler-explorer/compiler-explorer/issues/566) for how this might be implemented. in particular @Finagolfin, who, as far as i can tell, has helped many people better understand how cross compilation in Swift can be made to work. and of course, thanks to those involved in implementing the static linux SDK feature, without which this task would presumably have been much more involved.

* * *

1. associated PRs [here](https://github.com/compiler-explorer/infra/pull/1524) & [here](https://github.com/compiler-explorer/compiler-explorer/pull/7434)

---

_[View the full topic](https://forums.swift.org/t/psa-godbolt-compiler-explorer-updates/77556)._
