Does Objective-C compile to native code or byte-code?

前端 未结 4 1034
孤独总比滥情好
孤独总比滥情好 2021-02-14 09:58

On OS X, does Objective-C compile to native code or byte-code?

Can Objective-C programs be compiled on Linux?

4条回答
  •  盖世英雄少女心
    2021-02-14 10:54

    It's native.

    There is GNUstep which an Open Source implementation of the NeXT OpenStep specification written in Objective-C. Their implementation of the Cocoa API is not a direct match so a direct compilation without porting is not possible.

提交回复
热议问题