keil配置编译两次部分编译成全编译sourceinsight编辑报警解决

keil配置编译两次部分编译成全编译sourceinsight编辑报警解决

2023年7月9日发(作者:)

keil配置编译两次部分编译成全编译sourceinsight编辑报警解决

下载最新版keil软件(4.71.2.0),只改了⼀个⽂件,选择部分编译,发现keil全部编译所有⽂件,速度慢死了。还有就是⽤source insight 修改后每次keil都报警,需重新加载确认! (1) Edit--》configuration,单击,然后选择相关的配置选项,如图

(2) 部分编译成全编译问题 。去掉勾选"USE-Cross_Module Optimization"

MDK Compiler Optimizations · Cross- Module

Optimization takes information from a prior build and uses it to place UNUSED functions into their own ELF section in thecorresponding object option is also known as Linker Feedback, and requires you to build your application twice to take advantage of it forreduced code size.

Cross-Module Optimization has been shown to reduce code size, by removing unused functions from your can also improve the performance of your application, by allowing modules to share inline code.

“最优化”从预编译来获取信息,并且通过它将未使⽤的函数放到分割的切⽚模块所对应的对象⽂件⾥。这个选项是链接器的反馈,并且它需要编译你的应⽤⽂件两次来获取较⼩的优化代码。它通过移除未使⽤的函数来减⼩代码的⼤⼩,同时也通过允许模块间共享内敛代码来提升该性能。

· The M icroLIB C library

has been optimized to reduce the size of embedded applications. It is a subset of the ISO

standard C runtime library, and offers a tradeoff between functionality and code size. Some of the standard C library

functions such as memcpy() are slower, while some features of the default library are not supported. Unsupported

features include:

o Operating system abort(), exit(), time(), system(), getenv(),

o Wide character and multi-byte mbtowc(), wctomb()

o The stdio file I/O function, with the exception of stdin, stdout and stderr

o Position-independent and thread -safe code

Use the MicroLIB C library for applications where overall performance can be traded off against the need to reduce code

size and memory cost.

这个选项⽤来优化嵌⼊式应⽤的⼤⼩。它是ISO标准C 运⾏库⾥的⼀个⼦集,提供代码⼤⼩和函数功能性间来选择权衡。⼀些标准C⾥的函数如memcpy内存拷贝⽐该库慢,然⽽它也缺少⼀些功能并且⼀些库也不⽀持。

(3)编译keil⼯程时,报编译⼤⼩超出范围,原因是没破解,FILE-->LICENCE MANGEMENT .......破解就好了

发布者:admin,转转请注明出处:http://www.yc00.com/web/1688905149a182205.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信