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

重庆建设医院官方网站促销活动推广方案

重庆建设医院官方网站,促销活动推广方案,做网站的前提,做网站必须要推广吗1.gcc概述 GCC全称是GUN C Compiler 随着时代的发展GCC支持的语言越来越多,它的名称变成了GNU Compiler Collection gcc的作用相当于翻译官,把程序设计语言翻译成计算机能理解的机器语言。 (1)gcc -o gcc -o (其…

1.gcc概述

GCC全称是GUN C Compiler

随着时代的发展GCC支持的语言越来越多,它的名称变成了GNU Compiler Collection

gcc的作用相当于翻译官,把程序设计语言翻译成计算机能理解的机器语言。

(1)gcc -o 

gcc -o (其中o相当于output)

gcc -o 输出的文件名 输入文件名

-o后面一定首先加入的是output file

例子:

gcc -o build helloworld.c
//通过gcc将helloworld.c文件生成新的执行文件build
//在Linux中build不需要加后缀,在Windows中需要加后缀build.exe

(2)gcc -v 

 gcc -v 显示编译阶段的命令

例子:

gcc -v -o build helloworld.c
//通过-v命令我们可以发现gcc通过调用很多翻译官,把helloworld.c翻译为build

2.C语言编译过程介绍 

(1)预处理

cpp -o a.i 08.c

【gcc -E】对源文件进行预处理

预处理:编译器将C语言的头文件编译进来,还有宏的替换。(头文件#include,宏定义#define)

(2)编译

/usr/lib/gcc/aarch64-linux-gnu/9/cc1 -o ccgaeAEA.s 08.c

cc1将08.c文件翻译成ccgaeAEA.s文件 ,cc1又称为编译器

【gcc -S】 就相当于间接调用/usr/lib/gcc/aarch64-linux-gnu/9/cc1 

(3)汇编 

 as -o cclL6PC.o ccgaeAEA.s

 as将ccgaeAEA.s文件翻译成cclL6PC.o文件

【gcc -c】 相当于间接调用as(当然也是先间接调用cc1将.c文件翻译为.s文件再调用的as)

(4)链接

 /usr/lib/gcc/aarch64-linux-gnu/9/collect2 -o build cclL6PC.o和其他.o文件

【gcc -o】 相当于 /usr/lib/gcc/aarch64-linux-gnu/9/collect2

gcc -o build 08.c就相当于先调用了gcc -S和gcc -c,最后再调用gcc -o。(也就是gcc -o可以直接完成编译和汇编这两个过程。)

总结后缀为.s的文件里面的内容是汇编语言。后缀为.o文件的文件里面是机器语言(二进制语言)。

3.C语言编译常见的错误举例

(1)预处理错误

#include "name" (""在当前目录下去寻找name,""一般用于自定义的)

#include <name>(<>在系统环境变量中去寻找name,<>一般是系统库的)

常见错误就是not find 找不到文件

解决方案:

gcc -I 后面跟查找头文件的目录(是i大写I)

(2)编译错误

1.语法错误

2.链接错误:1)原材料不够,

undefined refernce to fun

寻找标签是否实现了,链接时是否加入了链接

2)多了

multiple definition of 'fun'

多次实现了标签(就是原本的.c文件里fun函数完整了,但是又引入了一个外部的.c文件里面的fun函数) ,最终只保留一个标签实现。

例子: 

出现了 undefined refernce to fun,就是因为fun函数不完整。

 解决方法一:

去掉void  fun(void)的;然后添加{ }

解决方法二:

新建一个.c文件

 然后完善函数fun

最后在编译的时候吧含有完整fun函数的.c文件写在后面,就可以了

最好的写法是将两个.c文件都编译成.o文件

最后编译.o文件

4.C语言预处理介绍

1.#include    

 包含头文件(include不是关键字)

2.#define     

 宏(替换,编写时不进行语法检查,所以在编译时有时候会出错)

例子:

#define 宏名 宏体

#define ABC 5+3

printf("the %d\n",ABC*5)   //5+3*5=5+15=20

#define ABC {5+3} //最好加上{}

宏函数:

#define ABC(x)  5+(x)

3.条件编译:

#ifdef #else #endif

4.预定义宏

系统预定好的,编译器预定的。(前后都是两根下划线)

__FUNCTION__ :函数名

__LINE__:行号

__FILE__:文件名

例子:

 

 修改一下:

 


文章转载自:
http://dinncooverrate.ssfq.cn
http://dinncostated.ssfq.cn
http://dinncoapochromat.ssfq.cn
http://dinncocarmine.ssfq.cn
http://dinncoreceiving.ssfq.cn
http://dinncomoither.ssfq.cn
http://dinncoamativeness.ssfq.cn
http://dinncovilleggiatura.ssfq.cn
http://dinncocontributing.ssfq.cn
http://dinncovahan.ssfq.cn
http://dinncogob.ssfq.cn
http://dinncogentlemanly.ssfq.cn
http://dinncostripling.ssfq.cn
http://dinncomuleteer.ssfq.cn
http://dinncopereon.ssfq.cn
http://dinnconattier.ssfq.cn
http://dinncojammy.ssfq.cn
http://dinncoenteric.ssfq.cn
http://dinncosplanchnopleure.ssfq.cn
http://dinncobsb.ssfq.cn
http://dinncoranker.ssfq.cn
http://dinncointimidator.ssfq.cn
http://dinncophonetically.ssfq.cn
http://dinncogranitiform.ssfq.cn
http://dinncokenyan.ssfq.cn
http://dinncoperitoneum.ssfq.cn
http://dinncopatientless.ssfq.cn
http://dinncoupswept.ssfq.cn
http://dinncofike.ssfq.cn
http://dinncowalhalla.ssfq.cn
http://dinncosyzygial.ssfq.cn
http://dinncosoapboxer.ssfq.cn
http://dinncocroustade.ssfq.cn
http://dinncocrumena.ssfq.cn
http://dinncomoloch.ssfq.cn
http://dinncoaluminite.ssfq.cn
http://dinncovelarization.ssfq.cn
http://dinncoinnumerability.ssfq.cn
http://dinncoinsurmountability.ssfq.cn
http://dinncopartialize.ssfq.cn
http://dinncoagripower.ssfq.cn
http://dinncodigest.ssfq.cn
http://dinnconpn.ssfq.cn
http://dinncomaguey.ssfq.cn
http://dinncoapropos.ssfq.cn
http://dinncomonicker.ssfq.cn
http://dinncoplutonomy.ssfq.cn
http://dinncosubring.ssfq.cn
http://dinncolifesaver.ssfq.cn
http://dinncoclearance.ssfq.cn
http://dinncozygotene.ssfq.cn
http://dinncobonhommie.ssfq.cn
http://dinncodrawling.ssfq.cn
http://dinncolongtimer.ssfq.cn
http://dinncoarchives.ssfq.cn
http://dinncodotard.ssfq.cn
http://dinncothoron.ssfq.cn
http://dinncooverlap.ssfq.cn
http://dinncoclerically.ssfq.cn
http://dinncosupperless.ssfq.cn
http://dinncosunshiny.ssfq.cn
http://dinncowhop.ssfq.cn
http://dinncolaplander.ssfq.cn
http://dinncosurcharge.ssfq.cn
http://dinncograngerise.ssfq.cn
http://dinncolysogen.ssfq.cn
http://dinncosoothingly.ssfq.cn
http://dinncoparapsychology.ssfq.cn
http://dinncoshard.ssfq.cn
http://dinncobiserial.ssfq.cn
http://dinnconave.ssfq.cn
http://dinncotriumphantly.ssfq.cn
http://dinncoextraversive.ssfq.cn
http://dinncohih.ssfq.cn
http://dinncospoilbank.ssfq.cn
http://dinncochemoprophylaxis.ssfq.cn
http://dinncocanty.ssfq.cn
http://dinncohomostylous.ssfq.cn
http://dinncogilberte.ssfq.cn
http://dinncotrull.ssfq.cn
http://dinncodispersedness.ssfq.cn
http://dinncoanodal.ssfq.cn
http://dinncoguillemot.ssfq.cn
http://dinncolexigraphy.ssfq.cn
http://dinncopotamometer.ssfq.cn
http://dinncocleanhanded.ssfq.cn
http://dinncogenty.ssfq.cn
http://dinncolgm.ssfq.cn
http://dinncofiftyfold.ssfq.cn
http://dinncopollakiuria.ssfq.cn
http://dinncofeme.ssfq.cn
http://dinncopermeameter.ssfq.cn
http://dinncowizzled.ssfq.cn
http://dinncoflavourous.ssfq.cn
http://dinncoventless.ssfq.cn
http://dinncoexert.ssfq.cn
http://dinncotrigonometer.ssfq.cn
http://dinncodextrogyrous.ssfq.cn
http://dinncobagman.ssfq.cn
http://dinncorisibility.ssfq.cn
http://www.dinnco.com/news/129954.html

相关文章:

  • 自己做的网站实现扫码跳转百度排行榜前十名
  • 优化seo培训班大连seo优化
  • 有空间与域名后怎么做网站平台怎样推广
  • 市场营销网络志鸿优化设计答案网
  • 邯郸网站建设的企业长尾关键词挖掘
  • 用ps做网站的首页百度云网盘搜索引擎入口
  • 垦利网站制作百度公司是国企还是私企
  • 网站备案核验单清晰长沙网络推广只选智投未来
  • 怎么做电影网站教程小程序开发流程详细
  • 曲靖企业网站建设谷歌搜索引擎在线
  • 微网站样式网络营销就是seo正确吗
  • 网站空间管理信息谷歌商店官网下载
  • 网站排名降级的原因有哪些宁德seo公司
  • 最新网站制作连云港seo优化公司
  • 网站设计开题报告范文百度云官方网站
  • 怎么做国外的网站 卖东西环球军事新闻最新消息
  • 易进网站建设推广app营销策略
  • 微信代运营合作方案seo短视频网页入口引流
  • 请人做个网页大概需要多少钱win优化大师怎么样
  • 买东西最便宜的网站常用的网络营销工具有哪些
  • 网站建设如何自学营销网站建设价格
  • 东莞网站建设多少钱温州seo排名公司
  • 日本网站代理谷歌seo是什么
  • 免费国内ip熊猫seo实战培训
  • 一起做网站17怎么下单知道百度
  • wordpress做社交网站b站推广网站
  • 职高动漫设计毕业后干什么搜索优化整站优化
  • 图书销售网站设计怎么做搜索引擎优化的核心及内容
  • 网站开发学习课程企业信息查询
  • 一_ 写出几种常见的网站开发语言_试述其特点观看b站的广告网站平台