TI中文支持网
TI专业的中文技术问题搜集分享网站

28335:例程中,CMD文件中的Special Section Types (DSECT, COPY, and NOLOAD)不解

在CMD文件中存储空间分配段分配到具体的存储空间,某些后面会有TYPE类型。主要是DSECT, COPY, and NOLOAD。不是很明白这三个的具体作用。spru513j.pdf文档中有几个解释具体如下:

The DSECT type creates a dummy section with the following characteristics:
– It is not included in the output section memory allocation. It takes up no memory and is not included
in the memory map listing.
– It can overlay other output sections, other DSECTs, and unconfigured memory.
– Global symbols defined in a dummy section are relocated normally. They appear in the output
module's symbol table with the same value they would have if the DSECT had actually been
loaded. These symbols can be referenced by other input sections.
– Undefined external symbols found in a DSECT cause specified archive libraries to be searched.
– The section's contents, relocation information, and line number information are not placed in the
output module.
In the preceding example, none of the sections from f1.obj are allocated, but all the symbols are
relocated as though the sections were linked at address 0x2000. The other sections can refer to any of
the global symbols in sec1.
• A COPY section is similar to a DSECT section, except that its contents and associated information are
written to the output module. The .cinit section that contains initialization tables for the TMS320C28x
C/C++ compiler has this attribute under the run-time initialization model.
• A NOLOAD section differs from a normal output section in one respect: the section's contents,
relocation information, and line number information are not placed in the output module. The linker
allocates space for the section, and it appears in the memory map listing.

英语不好。不太明白是什么意思。翻译软件也译的不准确。麻烦TI工作人员给解释下具体的是什么意思?谢谢!

赞(0)
未经允许不得转载:TI中文支持网 » 28335:例程中,CMD文件中的Special Section Types (DSECT, COPY, and NOLOAD)不解
分享到: 更多 (0)