Xcode 可执行文件生成过程

MBP:testClang yan$ clang -ccc-print-phases main.m
0: input, "main.m", objective-c
1: preprocessor, {0}, objective-c-cpp-output
2: compiler, {1}, ir
3: backend, {2}, assembler
4: assembler, {3}, object
5: linker, {4}, image
6: bind-arch, "x86_64", {5}, image
MBP:testClang yan$ 

源码->预处理 -> OC,C++混编->编译,生成中间代码->链接生成image可执行文件

posted @ 2019-06-09 21:20  davidyff  阅读(1078)  评论(0编辑  收藏  举报