Does Swift compile to native code?

后端 未结 4 2211
南笙
南笙 2020-12-24 10:44

Simple question really, however there doesn\'t seem to be a straight answer in the current developer documentation.

Does Swift compile to machine language (i.e. asse

4条回答
  •  鱼传尺愫
    2020-12-24 11:14

    Swift, just like objective-c compiles to native code using llvm

    A good explanation can be found in Apple's top secret Swift language grew from work to sustain Objective C, which it now aims to replace

    From that article, talking about Swift

    The compiler is optimized for performance, and the language is optimized for development, without compromising on either.

提交回复
热议问题