5 ms·
Swift is built on top of LLVM, the same way C,C++ and Rust are. Also note that the language was created by the original creator of LLVM. So you can use any bac
by oscargrouch 7y ago
Swift is built on top of LLVM, the same way C,C++ and Rust are. Also note that the language was created by the original creator of LLVM.
So you can use any backend LLVM does.. theres a little runtime friction in porting a small Swift runtime to the target (but you would only need to worry about that, if its not a popular LLVM backend).
But given Apple is a first class consumer of Swift, arm is definetely a strategic backend for Swift, given it needs to run on iOS.
(its a little alpha i guess, but you can even compile your Swift code to run on WASM nowadays)
- leshow 7y agoI don't think it's that simple. AVR was merged into LLVM, but I think you'd be hard pressed to get either rust or swift running on it right now. > So you can use any backend LLVM does.. theres a little runtime friction in porting a small Swift runtime to the target More than a little friction, I would think. I actually 'trust' the support if the language declares that they are going to support it. For example, Rust has said they will support the wasm target as first class.