Xcode自带将某一个源文件转化成汇编的功能。如图:
汇编的部分代码例如以下:
# 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,debugLsection_info: .section __DWARF,__debug_abbrev,regular,debugLsection_abbrev: .section __DWARF,__debug_aranges,regular,debug .section __DWARF,__debug_macinfo,regular,debug .section __DWARF,__debug_line,regular,debugLsection_line: .section __DWARF,__debug_loc,regular,debug .section __DWARF,__debug_str,regular,debugLinfo_string: .section __DWARF,__debug_ranges,regular,debugLdebug_range: .section __DWARF,__debug_loc,regular,debugLsection_debug_loc: .section __TEXT,__text,regular,pure_instructionsLtext_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