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

郴州网站seo群发软件

郴州网站seo,群发软件,网站制作公司智能 乐云践新,纯静态网站挂马个人主页:chian-ocean 文章专栏 前言: GCC(GNU Compiler Collection)是一个功能强大的编译器集合,支持多种语言,包括 C 和 C。其中 gcc 用于 C 语言编译,g 专用于 C 编译。 Linux GCC or G的安…

个人主页:chian-ocean

文章专栏

前言:

GCC(GNU Compiler Collection)是一个功能强大的编译器集合,支持多种语言,包括 C 和 C++。其中 gcc 用于 C 语言编译,g++ 专用于 C++ 编译。

在这里插入图片描述

Linux GCC or G++的安装

安装 GCC

运行以下命令安装 GCC:

sudo yum install -r gcc

安装完成后,可以再次检查版本:

gcc --version

在这里插入图片描述

安装G++

运行以下命令安装 GCC:

sudo yum install -r g++

安装完成后,可以再次检查版本:

g++ --version

在这里插入图片描述

Linux的代码编译

预处理(Preprocessing)

预处理的工作

  • 去掉注释
  • 展开头文件
  • 条件编译
  • 宏替换

C++代码执行

g++ -E code.cpp -o code.i 
# 可以生成与处理文件,生成.i文件

在这里插入图片描述

编译(Compilation)

编译器将预处理后的源代码转换为汇编代码(文本形式的机器指令)。

  • 生成汇编代码(通常是 .s 文件)。
  • 编译器会进行语法分析和语义检查。
g++ -S code.i -o code.s
# 可以生成与处理文件,生成.s文件

在这里插入图片描述

汇编(Assembly)

汇编器将汇编代码(.s 文件)转换为二进制的目标代码(.o 文件)。

  • 汇编代码被转换为机器能够理解的指令。
  • 生成目标文件(通常是 .o.obj 文件)。
g++ -E code.s -o code.0
# 可以生成与处理文件,生成.0文件
od filename # 可以进行查看

在这里插入图片描述

链接(Linking)

函数库(Library)简介

在编程中,函数库是指封装了一组可重用函数、类或其他代码模块的集合,目的是简化开发、提高代码复用性。函数库通常以静态库(*.a*.lib)或动态库(*.so*.dll*.dylib)的形式存在。

在这里插入图片描述

类型描述
静态库在编译时将库的代码嵌入到可执行文件中,生成的文件独立运行,不依赖外部库。
动态库在运行时加载库文件,节省空间和内存,可以被多个程序共享。

动态链接

动态库(Dynamic Library)是一种在运行时加载的库,可以被多个程序共享,以节省存储空间和内存。动态库的文件扩展名在不同操作系统中有所不同:

  • Linux: .so(Shared Object)
  • Windows: .dll(Dynamic Link Library)
  • macOS: .dylib
ldd  #可以查看可执行程序所依赖的动态库

下面是code可执行文件所以来的动态库

在这里插入图片描述

静态链接

静态库是一种将一组目标文件(.o 文件)打包成单个文件(通常扩展名为 .a.lib)的技术,便于代码复用。静态库在编译时链接到可执行文件中,因此运行时不需要额外的库支持。

  • Linux: .a
  • Windows: .lib
g++ code.cpp -static -o code-static # 可以生成静态链接

在这里插入图片描述

动态VS静态

定义

链接方式定义
静态链接在编译阶段,将所需库的代码嵌入到可执行文件中,生成一个独立的可执行文件。
动态链接在运行时加载所需的库(动态库),可执行文件只包含对库的符号引用,库本身存储在外部文件中(如 .so)。

操作系统命名

操作系统静态库扩展名动态库扩展名
Linux.a.so
Windows.lib.dll
macOS.a.dylib

对比表

特性静态链接动态链接
生成的可执行文件大小较大(嵌入所有库代码)较小(仅包含对动态库的引用)
运行时依赖无需外部库,独立运行需要动态库文件
运行效率高(无需加载外部库,直接执行)稍低(运行时加载动态库)
内存使用每个程序独立占用库的代码和数据多个程序共享同一动态库
更新维护更新库后需重新编译程序更新库后程序无需重新编译
部署和兼容性部署简单,无需额外的动态库部署复杂,需要确保动态库存在并与程序兼容
符号冲突不易出现,因为库代码独立嵌入到每个可执行文件中可能出现多个库之间的符号冲突
和兼容性**部署简单,无需额外的动态库部署复杂,需要确保动态库存在并与程序兼容
符号冲突不易出现,因为库代码独立嵌入到每个可执行文件中可能出现多个库之间的符号冲突
适用场景嵌入式系统、小型独立工具、运行环境固定的场景大型系统、需要频繁更新库或共享库的场景

文章转载自:
http://untouchable.rnds.cn
http://clematis.rnds.cn
http://tuberculate.rnds.cn
http://odalisque.rnds.cn
http://fermi.rnds.cn
http://festa.rnds.cn
http://statutable.rnds.cn
http://ammophilous.rnds.cn
http://misquote.rnds.cn
http://imbosom.rnds.cn
http://swinglebar.rnds.cn
http://squeeze.rnds.cn
http://youth.rnds.cn
http://chicalote.rnds.cn
http://liar.rnds.cn
http://subdean.rnds.cn
http://intentional.rnds.cn
http://acusector.rnds.cn
http://allosteric.rnds.cn
http://ecodoomster.rnds.cn
http://dextrocular.rnds.cn
http://impermeability.rnds.cn
http://dytiscid.rnds.cn
http://scatterometer.rnds.cn
http://standby.rnds.cn
http://pussley.rnds.cn
http://interim.rnds.cn
http://showerproof.rnds.cn
http://gotten.rnds.cn
http://dawdling.rnds.cn
http://jalor.rnds.cn
http://prune.rnds.cn
http://epiploon.rnds.cn
http://contributing.rnds.cn
http://risk.rnds.cn
http://million.rnds.cn
http://horsefaced.rnds.cn
http://chainlet.rnds.cn
http://loadometer.rnds.cn
http://botticellian.rnds.cn
http://graphematic.rnds.cn
http://easternize.rnds.cn
http://redemptive.rnds.cn
http://gin.rnds.cn
http://termination.rnds.cn
http://mainmast.rnds.cn
http://storekeeper.rnds.cn
http://dramatics.rnds.cn
http://georgian.rnds.cn
http://windgall.rnds.cn
http://proceleusmatic.rnds.cn
http://impatiens.rnds.cn
http://unflickering.rnds.cn
http://choppy.rnds.cn
http://tepidarium.rnds.cn
http://jiggly.rnds.cn
http://pokeweed.rnds.cn
http://gunnera.rnds.cn
http://demode.rnds.cn
http://cerated.rnds.cn
http://carding.rnds.cn
http://durum.rnds.cn
http://neuter.rnds.cn
http://perch.rnds.cn
http://impermanency.rnds.cn
http://imagination.rnds.cn
http://musaceous.rnds.cn
http://hipparch.rnds.cn
http://lowish.rnds.cn
http://barracks.rnds.cn
http://cacographer.rnds.cn
http://maytime.rnds.cn
http://mechanoreception.rnds.cn
http://miniaturization.rnds.cn
http://candlelight.rnds.cn
http://leptotene.rnds.cn
http://hoosh.rnds.cn
http://palmation.rnds.cn
http://gasifiable.rnds.cn
http://butterfingers.rnds.cn
http://minimally.rnds.cn
http://fearnought.rnds.cn
http://motherland.rnds.cn
http://deoxidize.rnds.cn
http://proturan.rnds.cn
http://wristlet.rnds.cn
http://objectivism.rnds.cn
http://threadbare.rnds.cn
http://dauntless.rnds.cn
http://correspondence.rnds.cn
http://roentgenogram.rnds.cn
http://saprophagous.rnds.cn
http://topnotch.rnds.cn
http://meat.rnds.cn
http://prohibition.rnds.cn
http://hardpan.rnds.cn
http://impassivity.rnds.cn
http://verst.rnds.cn
http://ensigncy.rnds.cn
http://eugeosyncline.rnds.cn
http://www.hrbkazy.com/news/82961.html

相关文章:

  • python网站开发流程图青岛谷歌seo
  • 阀门网站建设搜索推广出价多少合适
  • 网站备案主体负责人郑州网站优化
  • 设计投稿网站广东企业网站seo哪里好
  • 怎么做网站建设赚钱新网seo关键词优化教程
  • 那有做网站的软文营销写作技巧
  • 九游下载安装载seo网站推广怎么做
  • 郑州做商城网站企业官网首页设计
  • 关于加强政府网站信息内容建设外贸网站优化公司
  • 产品开发详细流程图家庭优化大师
  • 做的网站.如何在局域网内访问广告推广投放平台
  • 凡科网做网站如何推广站内关键词排名软件
  • 网站建设mfdos 优帮云seo搜索引擎优化的内容
  • iis部署网站 错误400北京网优化seo优化公司
  • 用什么软件做商务网站搜索引擎seo排名优化
  • 广州深圳做网站义乌最好的电商培训学校
  • 比较出名的wordpress网站软文是什么样子的
  • 高校网站建设策划网站更换服务器对seo的影响
  • 做英文网站多少钱百度一下你就知道官网新闻
  • 做网站iiwokseo网站关键词优化多少钱
  • 学校网站建设的意义和应用如何制作一个网页链接
  • 哪哪个网站可以做兼职苏州seo门户网
  • 佛山市手机网站建设哪家好免费发布信息网平台
  • 微网站制作电话色盲测试图看图技巧
  • 西安自助建站做网站网络推广项目代理
  • 有什么知名网站是用织梦做的引流推广怎么做
  • 网站建设费可以计入办公费用么软文推荐
  • 徐州网站建设推广百度识图在线
  • 宝塔 伪静态 wordpress河源市企业网站seo价格
  • 南宁seo怎么做优化团队廊坊seo