你好,
链接器文件是一个文本文件,作为链接器的输入提供,并指定(主要,但不仅仅)在哪些地址放置应用程序的代码和变量。
当使用STVD(或最新版本的IDEA)时,链接器文件是根据所选的微控制器自动生成的,因此一些用户对它不太了解,因为它对它们是“透明的”,但链接器文件包含非常重要的信息和限制可能导致您看到的错误消息。
例如,如果链接器文件包含类似的行
+ seg .text -b 0x8080 -m 0x2000
(无论出于何种原因:也许有人手动修改它或者STVD自动为8k内存生成它,然后没有人告诉它你现在正在使用更大的微处理器)
告诉链接器代码的最大大小(如果是8k),如果你的应用程序变大,你会看到你看到的消息“.text size overflow”。
问候,
卢卡
以上来自于谷歌翻译
以下为原文
Hello,
the linker file is a text file that is given as input to the linker and specifies (mainly, but not only) at what addresses to place the code and variables of your application.
When using STVD (or the latest versions of IDEA), the linker file is generated automatically based on the microcontroller chosen, so some users do not know much about it because it is 'transparent' for them, but the linker file contains very important information and limitations that could result in the error message you have seen.
For example, if your linker file contains a line like
+seg .text -b 0x8080 -m 0x2000
(for whatever reason: maybe someone modified it manually or STVD generated it automatically for a micro with 8k of memory and then no one told it that you are now working with a bigger micro)
that tells the linker that the maximum size of the code if 8k, and if your application grows bigger than that you will receive the message ''.text size overflow'' that you have seen.
Regards,
Luca