162 lines · plain
1# clang++ -g2 -gdwarf-5 main.cpp -S2# int main(){3# return 0;4# }5 6 7 .text8 .file "main.cpp"9 .globl main # -- Begin function main10 .p2align 4, 0x9011 .type main,@function12main: # @main13.Lfunc_begin0:14 .file 0 "." "main.cpp" md5 0x1dc672a3317ca2ae06986e1275dcc6e715 .loc 0 1 0 # main.cpp:1:016 .cfi_startproc17# %bb.0: # %entry18 pushq %rbp19 .cfi_def_cfa_offset 1620 .cfi_offset %rbp, -1621 movq %rsp, %rbp22 .cfi_def_cfa_register %rbp23 movl $0, -4(%rbp)24.Ltmp0:25 .loc 0 2 3 prologue_end # main.cpp:2:326 xorl %eax, %eax27 popq %rbp28 .cfi_def_cfa %rsp, 829 retq30.Ltmp1:31.Lfunc_end0:32 .size main, .Lfunc_end0-main33 .cfi_endproc34 # -- End function35 .section .debug_abbrev,"",@progbits36 .byte 1 # Abbreviation Code37 .byte 17 # DW_TAG_compile_unit38 .byte 1 # DW_CHILDREN_yes39 .byte 37 # DW_AT_producer40 .byte 37 # DW_FORM_strx141 .byte 19 # DW_AT_language42 .byte 5 # DW_FORM_data243 .byte 3 # DW_AT_name44 .byte 37 # DW_FORM_strx145 .byte 114 # DW_AT_str_offsets_base46 .byte 23 # DW_FORM_sec_offset47 .byte 16 # DW_AT_stmt_list48 .byte 23 # DW_FORM_sec_offset49 .byte 27 # DW_AT_comp_dir50 .byte 37 # DW_FORM_strx151 .byte 17 # DW_AT_low_pc52 .byte 27 # DW_FORM_addrx53 .byte 18 # DW_AT_high_pc54 .byte 6 # DW_FORM_data455 .byte 115 # DW_AT_addr_base56 .byte 23 # DW_FORM_sec_offset57 .byte 0 # EOM(1)58 .byte 0 # EOM(2)59 .byte 2 # Abbreviation Code60 .byte 46 # DW_TAG_subprogram61 .byte 0 # DW_CHILDREN_no62 .byte 17 # DW_AT_low_pc63 .byte 27 # DW_FORM_addrx64 .byte 18 # DW_AT_high_pc65 .byte 6 # DW_FORM_data466 .byte 64 # DW_AT_frame_base67 .byte 24 # DW_FORM_exprloc68 .byte 3 # DW_AT_name69 .byte 37 # DW_FORM_strx170 .byte 58 # DW_AT_decl_file71 .byte 11 # DW_FORM_data172 .byte 59 # DW_AT_decl_line73 .byte 11 # DW_FORM_data174 .byte 73 # DW_AT_type75 .byte 19 # DW_FORM_ref476 .byte 63 # DW_AT_external77 .byte 25 # DW_FORM_flag_present78 .byte 0 # EOM(1)79 .byte 0 # EOM(2)80 .byte 3 # Abbreviation Code81 .byte 36 # DW_TAG_base_type82 .byte 0 # DW_CHILDREN_no83 .byte 3 # DW_AT_name84 .byte 37 # DW_FORM_strx185 .byte 62 # DW_AT_encoding86 .byte 11 # DW_FORM_data187 .byte 11 # DW_AT_byte_size88 .byte 11 # DW_FORM_data189 .byte 0 # EOM(1)90 .byte 0 # EOM(2)91 .byte 0 # EOM(3)92 .section .debug_info,"",@progbits93.Lcu_begin0:94 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit95.Ldebug_info_start0:96 .short 5 # DWARF version number97 .byte 1 # DWARF Unit Type98 .byte 8 # Address Size (in bytes)99 .long .debug_abbrev # Offset Into Abbrev. Section100 .byte 1 # Abbrev [1] 0xc:0x2b DW_TAG_compile_unit101 .byte 0 # DW_AT_producer102 .short 33 # DW_AT_language103 .byte 1 # DW_AT_name104 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base105 .long .Lline_table_start0 # DW_AT_stmt_list106 .byte 2 # DW_AT_comp_dir107 .byte 0 # DW_AT_low_pc108 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc109 .long .Laddr_table_base0 # DW_AT_addr_base110 .byte 2 # Abbrev [2] 0x23:0xf DW_TAG_subprogram111 .byte 0 # DW_AT_low_pc112 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc113 .byte 1 # DW_AT_frame_base114 .byte 86115 .byte 3 # DW_AT_name116 .byte 0 # DW_AT_decl_file117 .byte 1 # DW_AT_decl_line118 .long 50 # DW_AT_type119 # DW_AT_external120 .byte 3 # Abbrev [3] 0x32:0x4 DW_TAG_base_type121 .byte 4 # DW_AT_name122 .byte 5 # DW_AT_encoding123 .byte 4 # DW_AT_byte_size124 .byte 0 # End Of Children Mark125.Ldebug_info_end0:126 .section .debug_str_offsets,"",@progbits127 .long 24 # Length of String Offsets Set128 .short 5129 .short 0130.Lstr_offsets_base0:131 .section .debug_str,"MS",@progbits,1132.Linfo_string0:133 .asciz "clang version 16.0.0" # string offset=0134.Linfo_string1:135 .asciz "main.cpp" # string offset=134136.Linfo_string2:137 .asciz "." # string offset=143138.Linfo_string3:139 .asciz "main" # string offset=181140.Linfo_string4:141 .asciz "int" # string offset=186142 .section .debug_str_offsets,"",@progbits143 .long .Linfo_string0144 .long .Linfo_string1145 .long .Linfo_string2146 .long .Linfo_string3147 .long .Linfo_string4148 .section .debug_addr,"",@progbits149 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution150.Ldebug_addr_start0:151 .short 5 # DWARF version number152 .byte 8 # Address size153 .byte 0 # Segment selector size154.Laddr_table_base0:155 .quad .Lfunc_begin0156.Ldebug_addr_end0:157 .ident "clang version 16.0.0"158 .section ".note.GNU-stack","",@progbits159 .addrsig160 .section .debug_line,"",@progbits161.Lline_table_start0:162