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

28335:例程中,F28335.cmd中的TYPE = DSECT的不解

C2833x/C2823x C/C++ Header Files and Peripheral Examples Quick Start Version 1.31中的F28335.cmd。

以下的TYPE = DSECT是什么意思?有什么影响?

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

看过《TMS320C28x Assembly Language Tools V6.1》中7.5.8 Special Section Types (DSECT, COPY, and NOLOAD)的描述,但没看明白,这几个是什么意思?有什么区别和影响?

注:SECTIONS之前已有
MEMORY
{
PAGE 0: /* Program Memory */
/* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */
……
/* .reset is a standard section used by the compiler. It contains the */ /* the address of the start of _c_int00 for C Code. /*
/* When using the boot ROM this section and the CPU vector */
/* table is not needed. Thus the default type is set here to */
/* DSECT */ RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
……

}

Young Hu:

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 includedin 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 outputmodule's symbol table with the same value they would have if the DSECT had actually beenloaded. 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 theoutput module.

C2833x/C2823x C/C++ Header Files and Peripheral Examples Quick Start Version 1.31中的F28335.cmd。

以下的TYPE = DSECT是什么意思?有什么影响?

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

看过《TMS320C28x Assembly Language Tools V6.1》中7.5.8 Special Section Types (DSECT, COPY, and NOLOAD)的描述,但没看明白,这几个是什么意思?有什么区别和影响?

注:SECTIONS之前已有
MEMORY
{
PAGE 0: /* Program Memory */
/* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */
……
/* .reset is a standard section used by the compiler. It contains the */ /* the address of the start of _c_int00 for C Code. /*
/* When using the boot ROM this section and the CPU vector */
/* table is not needed. Thus the default type is set here to */
/* DSECT */ RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
……

}

rufeng Jing:

回复 Young Hu:

这部分我以前看过,但始终不明白什么意思。

.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT

由It is not included in the output section memory allocation. It takes up no memory and is not included in the memory map listing.加上The section's contents, relocation information, and line number information are not placed in theoutput module.,是否指这两个段并没有装载?

那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.又指什么?

说到底,dummy section 到底是什么?

C2833x/C2823x C/C++ Header Files and Peripheral Examples Quick Start Version 1.31中的F28335.cmd。

以下的TYPE = DSECT是什么意思?有什么影响?

.reset : > RESET, PAGE = 0, TYPE = DSECT
vectors : > VECTORS PAGE = 0, TYPE = DSECT

看过《TMS320C28x Assembly Language Tools V6.1》中7.5.8 Special Section Types (DSECT, COPY, and NOLOAD)的描述,但没看明白,这几个是什么意思?有什么区别和影响?

注:SECTIONS之前已有
MEMORY
{
PAGE 0: /* Program Memory */
/* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */
……
/* .reset is a standard section used by the compiler. It contains the */ /* the address of the start of _c_int00 for C Code. /*
/* When using the boot ROM this section and the CPU vector */
/* table is not needed. Thus the default type is set here to */
/* DSECT */ RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */
……

}

Tony Chopper:

回复 rufeng Jing:

rufeng Jing

这部分我以前看过,但始终不明白什么意思。

.reset : > RESET, PAGE = 0, TYPE = DSECTvectors : > VECTORS PAGE = 0, TYPE = DSECT

由It is not included in the output section memory allocation. It takes up no memory and is not included in the memory map listing.加上The section's contents, relocation information, and line number information are not placed in theoutput module.,是否指这两个段并没有装载?

那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.又指什么?

说到底,dummy section 到底是什么?

赞(0)
未经允许不得转载:TI中文支持网 » 28335:例程中,F28335.cmd中的TYPE = DSECT的不解
分享到: 更多 (0)