完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
我在STVD环境中使用COSMIC的CXSTM8。 我的问题:我的上一个编译器/链接器我确信,未使用的过程自动没有链接到生成的文件。现在我相当缺乏程序存储器,并且必须为每个特殊项目详细说明我的功能模块的所有未使用过程。 程序可以为我做吗?也许是通过优化的链接器选项???? 最好的祝福, WoRo 以上来自于谷歌翻译 以下为原文 Hi, I'm using COSMIC's CXSTM8 in STVD environment. My Problem: With my last Compiler/Linker I was sure, that unused procedures automatically were not linked to the resulting file. Now I am rather short of programm memory and have to elaminate all the unused procedures of my funtional modules for each special project. Can the programm do it for me? perhaps by an optimizing linker option???? Best regards, WoRo |
|
相关推荐
3个回答
|
|
|
寻找+ split编译器选项。
问候, 卢卡 以上来自于谷歌翻译 以下为原文 look for the +split compiler option. Regards, Luca |
|
|
|
|
|
卢卡你好,
再次感谢您的快速回复。 但是使用+ split选项会增强代码大小:o(我找不到在我的STVD环境中设置链接器选项-k的方法。有什么问题? 问候, WoRo 以上来自于谷歌翻译 以下为原文 Hello Luca, thanks again for your prompt reply. But using the +split option will enhance the code size :o( , and I can't find a way to set the linker option -k within my STVD environment. What is wrong?? Regards, WoRo |
|
|
|
|
|
我不确定我理解你说的是什么,但是+ spl和链接器文件中的-k一起(通常在包含中断向量的段上)是你需要的,以便不使用未使用的函数。这将减少你的代码大小没有任何缺点(因为你消除了从未调用过的函数)
我不是关于STVD的专家,但我想我记得它确实允许你将-k选项放在你想要的段上。即使没有,您也可以随时选择“手动模式”并使用任何标准编辑器编辑链接器文件。 以上来自于谷歌翻译 以下为原文 I'm not sure I understand what you say, but +split, together with -k in the linker file (usually on the segment that contains the interrupt vectors) is what you need in order for the unused functions not to be linked. This will reduce your code size with no drawbacks (since you eliminate functions that are never called anyway) I'm not expert about STVD, but I think I remember it does allow you to put the -k option on the segment you want. Even if it does not, you can always select the ''manual mode'' and edit the linker file with any standard editor. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 12:43 , Processed in 0.804715 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1689