青海网站推广策划方案,WordPress手机网页登录代码,怎么样做网站才可以加重权重,什么是一学一做视频网站简介#xff1a; CSDN博客专家#xff0c;专注Android/Linux系统#xff0c;分享多mic语音方案、音视频、编解码等技术#xff0c;与大家一起成长#xff01; 优质专栏#xff1a;Audio工程师进阶系列【原创干货持续更新中……】#x1f680; 人生格言#xff1a; 人生… 简介 CSDN博客专家专注Android/Linux系统分享多mic语音方案、音视频、编解码等技术与大家一起成长 优质专栏Audio工程师进阶系列【原创干货持续更新中……】 人生格言 人生从来没有捷径只有行动才是治疗恐惧和懒惰的唯一良药. 更多原创,欢迎关注Android系统攻城狮 1.前言 本篇目的理解C之生成详细汇编程序。 2.应用实例
1.代码示例
#include stdio.hint main(void){int i;int a 10;i a 10;printf(i %d\n,i);return 0;
}
编译 g -S -fverbose-asm test.cpp
2.生成详细的汇编代码 cat test.s .file test.cpp
# GNU C17 (Ubuntu 11.2.0-19ubuntu1) version 11.2.0 (x86_64-linux-gnu)
# compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP# GGC heuristics: --param ggc-min-expand100 --param ggc-min-heapsize131072
# options passed: -mtunegeneric -marchx86-64 -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -fcf-protection.text.section .rodata
.LC0:.string i %d\n.text.globl main.type main, function
main:
.LFB0:.cfi_startprocendbr64 pushq %rbp #.cfi_def_cfa_offset 16.cfi_offset 6, -16movq %rsp, %rbp #,.cfi_def_cfa_register 6subq $16, %rsp #,
# test.cpp:5: int a 10;movl $10, -8(%rbp) #, a
# test.cpp:7: i a 10;movl -8(%rbp), %eax # a, tmp87addl $10, %eax #, tmp86movl %eax, -4(%rbp) # tmp86, i
# test.cpp:9: printf(i %d\n,i);movl -4(%rbp), %eax # i, tmp88movl %eax, %esi # tmp88,leaq .LC0(%rip), %rax #, tmp89movq %rax, %rdi # tmp89,movl $0, %eax #,call printfPLT #
# test.cpp:11: return 0;movl $0, %eax #, _5
# test.cpp:12: }leave .cfi_def_cfa 7, 8ret .cfi_endproc
.LFE0:.size main, .-main.ident GCC: (Ubuntu 11.2.0-19ubuntu1) 11.2.0.section .note.GNU-stack,,progbits.section .note.gnu.property,a.align 8.long 1f - 0f.long 4f - 1f.long 5
0:.string GNU
1:.align 8.long 0xc0000002.long 3f - 2f
2:.long 0x3
3:.align 8
4: