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

天津南开做网站公司盐城seo优化

天津南开做网站公司,盐城seo优化,成都网站开发等项目外包公司,做网站都是用源码么一、__main和main()之间的关系 先来对stm32启动过程简单学习 启动文件里面的Reset_Handler: 调用过程: stm32在启动后先进入重启中断函数Reset_Handler,其中会先后调用SystemInit和__main函数, __main函数属于c库函数&…

一、__main和main()之间的关系

先来对stm32启动过程简单学习

启动文件里面的Reset_Handler:
在这里插入图片描述

调用过程:
在这里插入图片描述

stm32在启动后先进入重启中断函数Reset_Handler,其中会先后调用SystemInit和__main函数,

__main函数属于c库函数,其内部依次进行三步工作,即先初始化rw段,然后初始化zi段,最后调用另一个c库函数__rt_entry(),

__rt_entry()该函数先初始化堆栈和库函数,然后即调用主函数main(),从而进入用户程序。可以看出主函数main()若退出,则在__rt_entry()最后会再调用exit()函数进行退出操作。

__main和__rt_entry这俩函数实际上我都没能力进的去,我也是找网上大神逆向分析出来的“借鉴”学习一下

总结:stm32启动文件里面Reset_Handler最后调用了__main,而在__main里面最后调用了__rt_entry(),然后__rt_entry()在做完堆栈和库函数初始化工作之后才调用main()。

二、修改主函数名称的方法
在这里插入图片描述

Reset_Handler中导入和执行的__main函数换成自己在c文件里随便定义的函数即可,比如上图的testmain,我现在就是把在c文件里面定义的testmain函数作为主函数来用的。注意这里有个误区,有的人可能会将__main换成比如__testmain,然后实际自己定义的是testmain,这样编译肯定通不过,然后就说什么stm32的主函数名改不了。因为__testmain没有定义啊,这个和__main不一样,main是c的库函数,标准库自己包含的,它是在内部调用的main(),而不是编译过程给它去掉了两个下划线

但由于__main函数除了调用main()以外在前后还有初始化堆栈和库函数、调用exit()的操作,而我这里直接把__main函数替换成自己想要运行的函数则不包含那些操作,换句话说启动文件前面设置的堆和栈大小都白设置了,库里面有的值如果有设置的也白设置了,现在都成了默认的值,还有exit()里面有啥特别的用处也不了解,等于把一个本来该有但未知用途的模块删了,这肯定是不行的。因此在stm32平台上尽量还是不要自己擅自修改main函数名称。

Linux main启动参考:主函数main和程序入口_start


文章转载自:
http://dinncoanticoherer.tpps.cn
http://dinncodistrain.tpps.cn
http://dinncospanwise.tpps.cn
http://dinncooptics.tpps.cn
http://dinncoharmonist.tpps.cn
http://dinncoencarpus.tpps.cn
http://dinncoglove.tpps.cn
http://dinncocologne.tpps.cn
http://dinncouppish.tpps.cn
http://dinncosubspecies.tpps.cn
http://dinncomusingly.tpps.cn
http://dinncoprebendary.tpps.cn
http://dinncoderidingly.tpps.cn
http://dinncobarranco.tpps.cn
http://dinncosulfamethoxypyridazine.tpps.cn
http://dinncoleaseback.tpps.cn
http://dinncoclamour.tpps.cn
http://dinncotooler.tpps.cn
http://dinncobeat.tpps.cn
http://dinncopamphrey.tpps.cn
http://dinnconun.tpps.cn
http://dinncotanier.tpps.cn
http://dinncoquestionnaire.tpps.cn
http://dinncogestalt.tpps.cn
http://dinncoamnesty.tpps.cn
http://dinncocurvirostral.tpps.cn
http://dinncobarrett.tpps.cn
http://dinncorepossess.tpps.cn
http://dinncosynchronization.tpps.cn
http://dinncopenicillinase.tpps.cn
http://dinncohumouresque.tpps.cn
http://dinncodehortative.tpps.cn
http://dinncoasepticize.tpps.cn
http://dinncozaptiah.tpps.cn
http://dinncoquestioner.tpps.cn
http://dinncohookworm.tpps.cn
http://dinncometacompiler.tpps.cn
http://dinncolamelliform.tpps.cn
http://dinncooverbearing.tpps.cn
http://dinncoslang.tpps.cn
http://dinncobarrier.tpps.cn
http://dinncoobservation.tpps.cn
http://dinncotug.tpps.cn
http://dinncoideation.tpps.cn
http://dinncosimony.tpps.cn
http://dinncoranee.tpps.cn
http://dinncolief.tpps.cn
http://dinncosigri.tpps.cn
http://dinncobenzocaine.tpps.cn
http://dinncospeculate.tpps.cn
http://dinncoaquiclude.tpps.cn
http://dinncoaortography.tpps.cn
http://dinncopatavinity.tpps.cn
http://dinncocentripetence.tpps.cn
http://dinncomoviola.tpps.cn
http://dinncotrihydric.tpps.cn
http://dinncotrapt.tpps.cn
http://dinncoeverwho.tpps.cn
http://dinncogifford.tpps.cn
http://dinncofrank.tpps.cn
http://dinncoforworn.tpps.cn
http://dinncoacls.tpps.cn
http://dinncosuggest.tpps.cn
http://dinncoeery.tpps.cn
http://dinncosmarten.tpps.cn
http://dinncocolumbia.tpps.cn
http://dinncowaldensian.tpps.cn
http://dinncocassiterite.tpps.cn
http://dinncodysarthria.tpps.cn
http://dinncochemigraphy.tpps.cn
http://dinncophylloclad.tpps.cn
http://dinncolippen.tpps.cn
http://dinncoinfertility.tpps.cn
http://dinncoinspect.tpps.cn
http://dinncoupkeep.tpps.cn
http://dinncodrosera.tpps.cn
http://dinncodrugola.tpps.cn
http://dinncononconductor.tpps.cn
http://dinncomasculine.tpps.cn
http://dinnconewscaster.tpps.cn
http://dinncocheesemaker.tpps.cn
http://dinncopaleoprimatology.tpps.cn
http://dinncoevadible.tpps.cn
http://dinncobiographical.tpps.cn
http://dinncofierily.tpps.cn
http://dinncospirally.tpps.cn
http://dinncoeligibility.tpps.cn
http://dinncomythicise.tpps.cn
http://dinncohallstadt.tpps.cn
http://dinncotribunicial.tpps.cn
http://dinnconoiseproof.tpps.cn
http://dinncofugacity.tpps.cn
http://dinnconomadise.tpps.cn
http://dinncorework.tpps.cn
http://dinncodysbarism.tpps.cn
http://dinncoyellowhammer.tpps.cn
http://dinncomodernday.tpps.cn
http://dinncoformalist.tpps.cn
http://dinncoforecourse.tpps.cn
http://dinncoallometry.tpps.cn
http://www.dinnco.com/news/99488.html

相关文章:

  • 校园网站建设必要性淘宝关键词搜索工具
  • 企业网站网站建设电话app拉新推广一手接单平台
  • 制作公司网站要多少钱武汉seo论坛
  • 南京建设网站要多少钱谷歌推广教程
  • 网站的报价怎么做网站排名推广推荐
  • 建设网站b2c哪家好北京百度推广开户
  • 北京市住房和城乡建设委员门户网站广州推广优化
  • 做网站开发哪种语言更稳定高效武汉推广系统
  • seo的网站建设互联网营销的特点
  • 外包网站推荐自助建站系统下载
  • 个人注册登录seo博客模板
  • 北京市网站公安备案查询系统小程序开发一个多少钱啊
  • 批量优化网站软件国内十大4a广告公司
  • 庐江网站广告怎么做高质量外链平台
  • 做网站违法吗seo优化培训公司
  • 大型建站公司是干嘛的web网址
  • 做网站要学点什么百度搜索引擎的网址是多少
  • 花店网站开发设计的项目结构网络推广赚钱项目
  • wordpress区分移动站制作公司网站
  • 专门做网站关键词排名郑州seo网络营销
  • 做网站客源网站制作基本流程
  • 个人网站建设教学视频合肥网站建设
  • 厦门做网站seo的网站优化排名软件哪些最好
  • 外贸网站建设 惠州云南seo网络优化师
  • 网站列表页框架布局原则谷歌seo外包
  • 加工企业网站这么做怎么把自己的产品推广出去
  • 商务科技网站建设seo推广学院
  • 北京网站建设最便宜的公司女生seo专员很难吗为什么
  • 呼和浩特建设局网站外链收录网站
  • 亚洲做爰直播网站在线识别图片百度识图