What is .abs_section_0, .abs_section_1, etc. for?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is .abs_section_0, .abs_section_1, etc. for?

跳至解决方案
1,367 次查看
leesp
Contributor I

Hi,

I am using CW for MC9S08.

I noted that in my .map file there are sections which are not defined in the .prm file, such as the .abs_section_x..

Can anyone explain what these sections are for?

 

*********************************************************************************************SECTION-ALLOCATION SECTIONSection Name                    Size  Type     From       To       Segment---------------------------------------------------------------------------------------------.data                              2   R/W      0x100      0x101   RAM.init                            132     R     0x8000     0x8083   ROM.startData                        18     R     0x8084     0x8095   ROM.text                             30     R     0x8096     0x80B3   ROM.rodata1                          18     R     0x80B4     0x80C5   ROM.copy                              8     R     0x80C6     0x80CD   ROM.abs_section_0                     1   N/I        0x0        0x0   .absSeg0.abs_section_1                     1   N/I        0x1        0x1   .absSeg1.abs_section_2                     1   N/I        0x2        0x2   .absSeg2

 sdfas

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
961 次查看
CrasyCat
Specialist III

Hello

 

All these sections are internally created by the compiler when you use the @ operator to define a variable at an absolute address.

 

This is happening for example for each I/O register defined in the msc908*.h file.

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
3 回复数
962 次查看
CrasyCat
Specialist III

Hello

 

All these sections are internally created by the compiler when you use the @ operator to define a variable at an absolute address.

 

This is happening for example for each I/O register defined in the msc908*.h file.

 

CrasyCat

0 项奖励
回复
961 次查看
leesp
Contributor I

Hi CrasyCat,

Thanks for the very useful info.

I cannot find such information in the SmartLinker user manual? What manual would you recommend for newbie to learn about how the Linker works?

Thanks..

 

0 项奖励
回复
961 次查看
CrasyCat
Specialist III

Hello

 

SmartLinker user manual is describing how the linker works.

 

CrasyCat