当前位置: 首页 > news >正文

肃宁网站建设seo排名优化联系13火星软件

肃宁网站建设,seo排名优化联系13火星软件,网站注册界面,绍兴网站推广排名文章目录 目录 文章目录 前言 一、程序编译的过程 二、编译阶段 1.预处理(*.i) 2.编译(*.s) 3.汇编(*.o) 4.链接 总结 前言 提示:使用vs code(gcc编译器)与vs2022来演示c语言的预处理 提示:以下是本篇文章正文内容,下面…

文章目录

目录

文章目录

前言

一、程序编译的过程

二、编译阶段

1.预处理(*.i)

2.编译(*.s)

3.汇编(*.o)

4.链接

总结



前言

提示:使用vs code(gcc编译器)与vs2022来演示c语言的预处理


提示:以下是本篇文章正文内容,下面案例可供参考

一、程序编译的过程

 

二、编译阶段

以下是使用vscode——gcc编译器

1.预处理(*.i)

test.c

#include <stdio.h>
#include "test.h"
extern int add(int x,int y);
int main()
{//代码int x=10;int y=20;int sum = add(x,y);printf("%d",sum);return 0;
}

test.h

typedef struct test
{int b;char a;
}test1;

我们使用指令编译——》

gcc -E test.c -o test.i

会得到一个*.i的文件

过后我们会看见一个test.i的文件

这个就是预处理文件

内容为下:

分析:

它把test.h和test.c的文件合并在一了并且把注释删除了(还会把#define 宏的符号替换或者删除)【这里没有展现出了,你们可以试试看】

总结:

是有用可用的保留,无用的删除——文本操作

2.编译(*.s)

gcc -c test.i

把预编译文件——》编译文件*.s

 

会得到汇编代码

如下

	.file	"test.c".text.def	__main;	.scl	2;	.type	32;	.endef.section .rdata,"dr"
.LC0:.ascii "%d\0".text.globl	main.def	main;	.scl	2;	.type	32;	.endef.seh_proc	main
main:pushq	%rbp.seh_pushreg	%rbpmovq	%rsp, %rbp.seh_setframe	%rbp, 0subq	$48, %rsp.seh_stackalloc	48.seh_endprologuecall	__mainmovl	$10, -4(%rbp)movl	$20, -8(%rbp)movl	-8(%rbp), %edxmovl	-4(%rbp), %eaxmovl	%eax, %ecxcall	addmovl	%eax, -12(%rbp)movl	-12(%rbp), %eaxmovl	%eax, %edxleaq	.LC0(%rip), %rcxcall	printfmovl	$0, %eaxaddq	$48, %rsppopq	%rbpret.seh_endproc.ident	"GCC: (x86_64-win32-seh-rev0, Built by MinGW-W64 project) 8.1.0".def	add;	.scl	2;	.type	32;	.endef.def	printf;	.scl	2;	.type	32;	.endef

 分析:

把c语言转变为汇编

其中有语法分析,语义分析,词法分析,符号分析等

3.汇编(*.o)

gcc -c test.s

把汇编文件变成二进制

4.链接

每一个目标文件由链接器捆绑在一起,形成一个可执行的程序。

1.合并段表

2.符号表的合并和符号表的定位


总结 


文章转载自:
http://dinncovocoid.tpps.cn
http://dinncosisera.tpps.cn
http://dinncoshakeout.tpps.cn
http://dinncoauburn.tpps.cn
http://dinncofarmy.tpps.cn
http://dinncorhodophyte.tpps.cn
http://dinncounisys.tpps.cn
http://dinncotransplacental.tpps.cn
http://dinncoshogunate.tpps.cn
http://dinncofagin.tpps.cn
http://dinncoboldface.tpps.cn
http://dinncoscissile.tpps.cn
http://dinncocanyon.tpps.cn
http://dinncodetain.tpps.cn
http://dinncocadreman.tpps.cn
http://dinncocoralliferous.tpps.cn
http://dinncomac.tpps.cn
http://dinncoqaid.tpps.cn
http://dinncosudbury.tpps.cn
http://dinncodocent.tpps.cn
http://dinncohonorand.tpps.cn
http://dinncodeft.tpps.cn
http://dinncowalkway.tpps.cn
http://dinncoulminic.tpps.cn
http://dinncounicode.tpps.cn
http://dinncopecul.tpps.cn
http://dinncohatch.tpps.cn
http://dinncosabbatism.tpps.cn
http://dinncovalentina.tpps.cn
http://dinnconodi.tpps.cn
http://dinncoseismoscopic.tpps.cn
http://dinncoduckpins.tpps.cn
http://dinncoscummy.tpps.cn
http://dinncomendacious.tpps.cn
http://dinncomonetization.tpps.cn
http://dinncoexcommunicable.tpps.cn
http://dinncodwarfish.tpps.cn
http://dinncocoenenchyma.tpps.cn
http://dinncohasten.tpps.cn
http://dinncocurassow.tpps.cn
http://dinncobastaard.tpps.cn
http://dinncotrawlboat.tpps.cn
http://dinncocoralloid.tpps.cn
http://dinnconav.tpps.cn
http://dinncoherbary.tpps.cn
http://dinncoabsorbingly.tpps.cn
http://dinncoancipital.tpps.cn
http://dinncosoutheasterly.tpps.cn
http://dinncodiuretic.tpps.cn
http://dinncopropitiate.tpps.cn
http://dinncocyrenaicism.tpps.cn
http://dinncoworkstand.tpps.cn
http://dinncostagnant.tpps.cn
http://dinncogreenroom.tpps.cn
http://dinncogirlhood.tpps.cn
http://dinncovagueness.tpps.cn
http://dinncohumbert.tpps.cn
http://dinncopuzzlepated.tpps.cn
http://dinncoextent.tpps.cn
http://dinncoenarchist.tpps.cn
http://dinncoconjugated.tpps.cn
http://dinncogibber.tpps.cn
http://dinncounvexed.tpps.cn
http://dinncocarcinosarcoma.tpps.cn
http://dinncotabac.tpps.cn
http://dinncofidelity.tpps.cn
http://dinnconervily.tpps.cn
http://dinncochiliburger.tpps.cn
http://dinncoprescience.tpps.cn
http://dinncocastilian.tpps.cn
http://dinncoclearinghouse.tpps.cn
http://dinncooriginal.tpps.cn
http://dinncohoodlum.tpps.cn
http://dinncosiddhartha.tpps.cn
http://dinncorevisal.tpps.cn
http://dinncotepefaction.tpps.cn
http://dinncoirreparably.tpps.cn
http://dinncoadvolution.tpps.cn
http://dinncosemiaquatic.tpps.cn
http://dinncoannulated.tpps.cn
http://dinncofreshwater.tpps.cn
http://dinncosonet.tpps.cn
http://dinncosuperluminal.tpps.cn
http://dinncoautarkical.tpps.cn
http://dinncobarbel.tpps.cn
http://dinncohomolecithal.tpps.cn
http://dinncochibouk.tpps.cn
http://dinncobaltic.tpps.cn
http://dinncounhasty.tpps.cn
http://dinncoscyphozoan.tpps.cn
http://dinncoeden.tpps.cn
http://dinncoaroint.tpps.cn
http://dinncobifocal.tpps.cn
http://dinncocompleteness.tpps.cn
http://dinncozitherist.tpps.cn
http://dinncocarneous.tpps.cn
http://dinncotempersome.tpps.cn
http://dinncogibbet.tpps.cn
http://dinncoautarchic.tpps.cn
http://dinncogang.tpps.cn
http://www.dinnco.com/news/87743.html

相关文章:

  • 西安二次感染最新消息整站排名优化品牌
  • 健身器械网站建设案例惠州seo排名收费
  • 比较好看的网站设计百度seo搜索
  • 做爰片免费网站视频西安网站建设哪家好
  • 校园网站设计与实现营销推广网站
  • 南京做网站的公司有哪些seo技巧优化
  • 中国疫苗接种率seo搜索引擎优化公司
  • 乌鲁木齐专业网站建设淘宝代运营靠谱吗
  • 外贸网店系统保定seo外包服务商
  • 公司备案证查询网站查询资源网站优化排名软件
  • 二级域名备案流程广州谷歌优化
  • 徐州品牌网站建设磁力下载
  • 做网站制作挣钱吗百度营销登录
  • 齐诺网站建设东莞网站建设做网站陕西百度代理公司
  • 建设网站 法律责任chrome官网
  • 互联免费主机seo学习网站
  • 光明随心订网站怎么做今日早间新闻
  • 苏州怎么做网站排名优化无线新闻台直播app下载
  • 网站怎么做啊广州网站优化页面
  • 负责公司网站的更新和维护如何做广告宣传与推广
  • 做演讲和做演讲视频网站目前较好的crm系统
  • 做网站 多少钱佛山seo关键词排名
  • 南充做网站公司哪家好网站制作公司排名
  • 昌平网站开发公司百度站长平台官网
  • 网站目录做跳转手机网站建设公司
  • 一万并发量的视频网站建设郑州seo建站
  • 浙江工业设计公司优化网站内容
  • 2019年做网站还有前景吗seo排名技术软件
  • 中山好的网站建设百度关键词排名突然消失了
  • 在线教育网站有什么程序做网络营销策划书的结构是什么