使用Xcode 查看objective-C的汇编代码

Xcode自带将某一个源文件转化成汇编的功能。如图:

使用Xcode 查看objective-C的汇编代码

汇编的部分代码例如以下:

# Assembly output for assemble.c
# Generated at 2:29:34 下午 on 星期一, 八月 18, 2014
# Using Debug configuration, x86_64 architecture for dataStruct target of dataStruct project .section __TEXT,__text,regular,pure_instructions
.section __DWARF,__debug_info,regular,debug
Lsection_info:
.section __DWARF,__debug_abbrev,regular,debug
Lsection_abbrev:
.section __DWARF,__debug_aranges,regular,debug
.section __DWARF,__debug_macinfo,regular,debug
.section __DWARF,__debug_line,regular,debug
Lsection_line:
.section __DWARF,__debug_loc,regular,debug
.section __DWARF,__debug_str,regular,debug
Linfo_string:
.section __DWARF,__debug_ranges,regular,debug
Ldebug_range:
.section __DWARF,__debug_loc,regular,debug
Lsection_debug_loc:
.section __TEXT,__text,regular,pure_instructions
Ltext_begin:
.section __DATA,__data
.file 1 "/Users/guoxiaodong/Documents/codeExemple/dataStruct/assemble.c"
.section __TEXT,__text,regular,pure_instructions
.globl _func0
.align 4, 0x90
_func0: ## @func0
上一篇:springcloud-eureka简单实现


下一篇:Flask框架获取用户IP地址的方法